Re: [Geoserver-devel] Spring MVC PathVariables cannot parse workspaces

2017-10-10 Thread Kevin Smith
David Vick and I spoke about this this morning and he thought the annotation-driven elements in the context shouldn't be necessary.  I tried removing them from the GWC stand alone context but that produced a slew of 404 errors in the integration tests. On 2017-10-09 03:03 AM, Alessio Fabiani wrote

Re: [Geoserver-devel] Spring MVC PathVariables cannot parse workspaces

2017-10-09 Thread Alessio Fabiani
See responses inline 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 9

Re: [Geoserver-devel] Spring MVC PathVariables cannot parse workspaces

2017-10-06 Thread Andrea Aime
On Fri, Oct 6, 2017 at 6:16 PM, Torben Barsballe < tbarsba...@boundlessgeo.com> wrote: > We ought to just be using context:component-scan everywhere (without > mvc:annotation-driven) if GWC is not doing that, then that is probably an > error. > I was just discussing it with Alessio this morning,

Re: [Geoserver-devel] Spring MVC PathVariables cannot parse workspaces

2017-10-06 Thread Torben Barsballe
I noticed that GWC still makes use of this annotation-driven support, is > there the possibility to get rid of it? Another issue I'm facing with this > customization is that at startup GeoServer do not automatically redirects > to the Wicket GUI but to the GWC homepage instead. We ought to just b

Re: [Geoserver-devel] Spring MVC PathVariables cannot parse workspaces

2017-10-06 Thread Alessio Fabiani
Update on GeoWebCache REST and Web Context conflicts... JVM needs to start with the following option -Dgwc.context.suffix=gwc Regards, Alessio Fabiani == GeoServer Professional Services from the experts! Visit http://goo.gl/it488V for more information. == Ing. Alessio Fabiani @alfa7691 Fo

Re: [Geoserver-devel] Spring MVC PathVariables cannot parse workspaces

2017-10-06 Thread Alessio Fabiani
This simple hack will fix the issue String resource = Paths.get(*URLEncoder.encode(request.getPathInfo(), "UTF-8")*).getFileName().toString(); Regards, Alessio Fabiani == GeoServer Professional Services from the experts! Visit http://goo.gl/it488V for more information. == Ing. Alessio Fabiani

Re: [Geoserver-devel] Spring MVC PathVariables cannot parse workspaces

2017-10-06 Thread Alessio Fabiani
The GWC home page redirect issue still remains, by the way. 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

Re: [Geoserver-devel] Spring MVC PathVariables cannot parse workspaces

2017-10-06 Thread Alessio Fabiani
Ok, so, after further investigation I should have got the cause of the issue. Basically this happens when the Monitoring plugin is installed, in particular here https://github.com/geoserver/geoserver/blob/3518cdb07ec159c1ac365fc8583da7ff4b9da89b/src/extension/monitor/core/src/main/java/org/geoser

Re: [Geoserver-devel] Spring MVC PathVariables cannot parse workspaces

2017-10-06 Thread Alessio Fabiani
This is currently the customization causing that issue https://github.com/GeoNode/geoserver-geonode-ext I had to rewrite the community plugin by removing everywhere "", otherwise there wasn't the possibility to let it working. I noticed that GWC still makes use of this annotation-driven support,

Re: [Geoserver-devel] Spring MVC PathVariables cannot parse workspaces

2017-10-06 Thread Alessio Fabiani
Oh, maybe is this the cause? java.nio.file.InvalidPathException: Illegal char <:> at index 19: /sldservice/geonode:san_andres_y_providencia_administrative/attributes.xml at sun.nio.fs.*WindowsPathParser*.normalize(Unknown Source) Regards, Alessio Fabiani == GeoServer Professional Services fro

Re: [Geoserver-devel] Spring MVC PathVariables cannot parse workspaces

2017-10-05 Thread Alessio Fabiani
Hi Torben, are you sure? Maybe it is a problem of my setup then, since with GeoServer 2.12.x I get the following http://localhost:8080/geoserver/rest/layers/geonode:san_andres_y_providencia_administrative.json Illegal char <:> at index 15: /layers/geonode:san_andres_y_providencia_administrative.j

Re: [Geoserver-devel] Spring MVC PathVariables cannot parse workspaces

2017-10-05 Thread Torben Barsballe
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

[Geoserver-devel] Spring MVC PathVariables cannot parse workspaces

2017-10-04 Thread Alessio Fabiani
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/geoso