Uploaded image for project: 'GeoServer'
  1. GEOS-8471

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.12.2, 2.13-beta
    • Component/s: GWC
    • Labels:
      None

      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:

      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

        Attachments

          Issue links

            Activity

              People

              • Assignee:
                tbarsballe Torben Barsballe
                Reporter:
                aaime Andrea Aime
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Stride room