We're updating the issue view to help you get more done. 

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

Description

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:

1 2 3 4 5 6 7 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?

By the way, issue found on master, suppose it happens also for 2.12.x

Environment

None

Status

Assignee

Torben Barsballe

Reporter

Andrea Aime

Triage

None

Fix versions

Affects versions

None

Components

Priority

Medium