[Geoserver-devel] [JIRA] (GEOS-8471) Submitting a seed/truncate request for a tile layer results in a "406, not acceptable"

Andrea Aime created an issue

GeoServer / BugGEOS-8471

Submitting a seed/truncate request for a tile layer results in a “406, not acceptable”

Issue Type:

BugBug

Assignee:

Unassigned

Components:

GWC

Created:

05/Dec/17 5:48 PM

Priority:

MediumMedium

Reporter:

Andrea Aime

Try to submit a seeding or truncate request, submit, and the browser is redirected to a URL like:
http://localhost:8080/geoserver/gwc/rest/seed/topp:states

which shows a “406, unacceptable”, with the following logs:

05 dic 17:42:31 WARN [geoserver.catalog] - Error while getting feature type, flushing cache and retrying: Error occurred building feature type
05 dic 17:44:24 WARN [annotation.ExceptionHandlerExceptionResolver] - Failed to invoke @ExceptionHandler method: public final org.springframework.http.ResponseEntity<java.lang.Object> org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler.handleException(java.lang.Exception,org.springframework.web.context.request.WebRequest)
org.springframework.web.HttpMediaTypeNotAcceptableException: Could not find acceptable representation
	at org.springframework.web.accept.ParameterContentNegotiationStrategy.handleNoMatch(ParameterContentNegotiationStrategy.java:82)
	at org.springframework.web.accept.AbstractMappingContentNegotiationStrategy.resolveMediaTypeKey(AbstractMappingContentNegotiationStrategy.java:78)
	at org.springframework.web.accept.AbstractMappingContentNegotiationStrategy.resolveMediaTypes(AbstractMappingContentNegotiationStrategy.java:61)
	at org.springframework.web.accept.ContentNegotiationManager.resolveMediaTypes(ContentNegotiationManager.java:123)

Just adding “.html” to the url seems to fix it. Do the GWC REST controllers have a concept of default format?

Add Comment

Add Comment

Get Jira notifications on your phone! Download the Jira Cloud app for Android or iOS


This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100074-sha1:43f7724)

Atlassian logo