On Wed, 18 Jan 2023 at 07:31, Andrea Aime <andrea.a...@geosolutionsgroup.com>
wrote:

> Hi Joseph,
> thanks for sharing the progress. Some additions inline below
>
> On Tue, Jan 17, 2023 at 10:31 PM Joseph Miller <millerjos...@gmail.com>
> wrote:
>
>> *Spring MVC Content Negotiation*
>> ContentNegotiationConfigurer.favorPathExtension is deprecated (and no
>> longer the default configuration) because Spring wants to discourage
>> extensions in paths. Removing extensions would cause GeoServer REST API
>> backwards compatibility issues that will have to be addressed in the
>> future. For now, we are suppressing the deprecation warning and turning on
>> this configuration option.
>>
>
> Some references about content negotiation and the deprecation itself, for
> reference:
>
>    - Docs about suffix match
>    
> <https://docs.spring.io/spring-framework/docs/current/reference/html/web.html#mvc-ann-requestmapping-suffix-pattern-match>
>    - The issue that deprecated path extensions
>    <https://github.com/spring-projects/spring-framework/issues/24179>
>
> This issue affects the REST API, which uses a suffix match to decide about
> the response content.  The OGC API module is currently not using such a
> convention, so it's not affected.
>

Note we've already faced that problem in GeoServer Cloud, and fixed it with
this:

https://github.com/geoserver/geoserver-cloud/commit/c9105e2d265ca89601157fcb58cd73ad2b750c82#diff-ce2a76336b064b1b6698bdbcacdde96f6635f31ed2ba982efb46ae4ba3f638f9R51

Basically:
ContentNegotiationConfigurer.favorPathExtension(true)
and
handlerMapping.setUseSuffixPatternMatch(true);
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to