Hi Alessio,
Have you actually tried either of these functionalities out yourself? They
both work fine.
In Spring, ":" is treated like any other character, leading to a layerName
of "geosolutions:my_layer". The geoserver catalog already has the necessary
functionality to parse the workspace out of a layer name of this form, and
does so when looking up the layer.
As for the extensions, spring MVC naturally handles extensions in URLs.
This ties into the content-type of the request, and ultimately determines
which converter is used to handle the request. If you try it out with the
REST API, you will see that adding ".xml" will result in different output
than ".json".
(Also, all your sample URLs are missing "/rest" after "geoserver")
Torben
On Wed, Oct 4, 2017 at 1:43 AM, Alessio Fabiani <
[email protected]> wrote:
> Dear all,
> with the latest porting to Spring MVC I noticed a potential issue on
> Request Mappings.
>
> Long story short with the current definition [http://localhost:8080/
> geoserver/layers/{layerName}/styles] of PathVariables requests like the
> following ones
>
> http://localhost:8080/geoserver/layers/geosolutions:my_layer/styles
>
> will fail, since the regex does not recognize that there is a workspace
> prefix.
>
> Moreover, on restconfig module RequestMappings should, imho, have a ** at
> the bottom, in order to allow geoserver recognize also extensions.
>
> http://localhost:8080/geoserver/layers/my_layer/styles.xml
>
> http://localhost:8080/geoserver/layers/my_layer/styles.json
>
> which won't work otherwise. I notices that at least this is has been done
> on rest module. It should be done on restconfig also.
>
> Regards,
>
> Alessio Fabiani
>
> ==
> GeoServer Professional Services from the experts! Visit
> http://goo.gl/it488V for more information.
> ==
>
> Ing. Alessio Fabiani
>
> @alfa7691
> Founder/Technical Lead
>
>
> GeoSolutions S.A.S.
> Via di Montramito 3/A
> 55054 Massarosa (LU)
> Italy
> phone: +39 0584 962313 <+39%200584%20962313>
> fax: +39 0584 1660272 <+39%200584%20166%200272>
> mob: +39 331 6233686 <+39%20331%20623%203686>
>
> http://www.geo-solutions.it
> http://twitter.com/geosolutions_it
>
> -------------------------------------------------------
>
> AVVERTENZE AI SENSI DEL D.Lgs. 196/2003
>
> Le informazioni contenute in questo messaggio di posta elettronica e/o
> nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il
> loro utilizzo è consentito esclusivamente al destinatario del messaggio,
> per le finalità indicate nel messaggio stesso. Qualora riceviate questo
> messaggio senza esserne il destinatario, Vi preghiamo cortesemente di
> darcene notizia via e-mail e di procedere alla distruzione del messaggio
> stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso,
> divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od
> utilizzarlo per finalità diverse, costituisce comportamento contrario ai
> principi dettati dal D.Lgs. 196/2003.
>
> The information in this message and/or attachments, is intended solely for
> the attention and use of the named addressee(s) and may be confidential or
> proprietary in nature or covered by the provisions of privacy act
> (Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection
> Code).Any use not in accord with its purpose, any disclosure, reproduction,
> copying, distribution, or either dissemination, either whole or partial, is
> strictly forbidden except previous formal approval of the named
> addressee(s). If you are not the intended recipient, please contact
> immediately the sender by telephone, fax or e-mail and delete the
> information in this message that has been received in error. The sender
> does not give any warranty or accept liability as the content, accuracy or
> completeness of sent messages and accepts no responsibility for changes
> made after they were sent or for other risks which arise as a result of
> e-mail transmission, viruses, etc.
>
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Geoserver-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geoserver-devel
>
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel