[Geoserver-devel] [jira] (GEOS-6262) GeoWebCache REST api /masstruncate is not working

Tommaso Doninelli created BugGEOS-6262
GeoWebCache REST api /masstruncate is not working

Issue Type:

BugBug

Affects Versions:

2.4.3, 2.4.2

Assignee:

Andrea Aime

Components:

GWC, REST

Created:

09/Jan/14 7:28 AM

Description:

Geowebcache 1.5 added a new REST endpoint to truncate all cached tiles for a layer (described here documentation), but the api is not available in the geowebcache integrated in Geoserver.

It seems that the url /geoserver/gwc/rest/masstruncate is not handled by the right class:

  • Calling HTTP GET /geoserver/gwc/rest/masstruncate should return an xml, but returns the content produced by /geoserver/gwc/rest/
  • The API shall handle GET and POST; however, performing a POST request the /geoserver/gwc/rest/masstruncate result in HTTP 405 Method Not Allowed

Testcase:

curl -v -u admin:geoserver -H "Content-type: text/xml" -d "<truncateLayer><layerName>topp:states</layerName></truncateLayer>"  "http://localhost:8080/geoserver/gwc/rest/masstruncate"

Project:

GeoServer

Priority:

MajorMajor

Reporter:

Tommaso Doninelli

This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: [http://www.atlassian.com/software/jira](http://www.atlassian.com/software/jira)