Re: [Geoserver-users] 405, FTL and REST delete of SLD
Hello Everyone, To follow up on this 'FTL' issue: We just got a call from our customer the issue is resolved. Apparantly it was IIS that was blocking. By doing a reinstall of IIS and selecting a minimum of modules in it, Geoserver was able to work normally. So it must have been some sort of obscure module from IIS doing the bad stuff. Thanks for the help and effort, Best regards, Martijn Coenen [Beschrijving: Beschrijving: Beschrijving: http://www.covadis.nl/emailkop/logo.gif] Covadis b.v. t: 026 3616600 Geograaf 12 f: 026 3612317 6921 EW Duiven e: coe...@covadis.nl Van: andrea.a...@gmail.com [mailto:andrea.a...@gmail.com] Namens Andrea Aime Verzonden: donderdag 5 juli 2012 16:39 Aan: David Winslow CC: Martijn Coenen; geoserver-users@lists.sourceforge.net Onderwerp: Re: [Geoserver-users] 405, FTL and REST delete of SLD On Thu, Jul 5, 2012 at 4:18 PM, David Winslow mailto:dwins...@opengeo.org>> wrote: FTL is the template language we use to generate HTML output in several places in GeoServer, including the REST API. If you are seeing FTL errors in the REST API it is a bug in GeoServer and a JIRA report would be appreciated. With a way to reproduce it :-) Looking at the logs I have the impression the ftl thing might be a red herring, maybe another request going on in parallel (we should really add the thread identifier to each log statement). Looking at the StyleResource I see no way the code can return a 405, besides maybe security settings or the lack of the style name in the URL Cheers Andrea -- Ing. Andrea Aime GeoSolutions S.A.S. Tech lead Via Poggio alle Viti 1187 55054 Massarosa (LU) Italy phone: +39 0584 962313 fax: +39 0584 962313 mob:+39 339 8844549 http://www.geo-solutions.it http://geo-solutions.blogspot.com/ http://www.youtube.com/user/GeoSolutionsIT http://www.linkedin.com/in/andreaaime http://twitter.com/geowolf <>-- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ Geoserver-users mailing list Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users
Re: [Geoserver-users] 405, FTL and REST delete of SLD
On Thu, Jul 5, 2012 at 4:18 PM, David Winslow wrote: > FTL is the template language we use to generate HTML output in several > places in GeoServer, including the REST API. If you are seeing FTL errors > in the REST API it is a bug in GeoServer and a JIRA report would be > appreciated. > With a way to reproduce it :-) Looking at the logs I have the impression the ftl thing might be a red herring, maybe another request going on in parallel (we should really add the thread identifier to each log statement). Looking at the StyleResource I see no way the code can return a 405, besides maybe security settings or the lack of the style name in the URL Cheers Andrea -- Ing. Andrea Aime GeoSolutions S.A.S. Tech lead Via Poggio alle Viti 1187 55054 Massarosa (LU) Italy phone: +39 0584 962313 fax: +39 0584 962313 mob:+39 339 8844549 http://www.geo-solutions.it http://geo-solutions.blogspot.com/ http://www.youtube.com/user/GeoSolutionsIT http://www.linkedin.com/in/andreaaime http://twitter.com/geowolf -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ Geoserver-users mailing list Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users
Re: [Geoserver-users] 405, FTL and REST delete of SLD
FTL is the template language we use to generate HTML output in several places in GeoServer, including the REST API. If you are seeing FTL errors in the REST API it is a bug in GeoServer and a JIRA report would be appreciated. -- David Winslow OpenGeo - http://opengeo.org/ On Thu, Jul 5, 2012 at 6:33 AM, Martijn Coenen wrote: > Hello, > > ** ** > > We are using REST to DELETE style information from Geoserver. It works > very well except on one implementation at one of our customers. > > A DELETE request returns a 405 error. Normally this would be a MIME-type > issue, but in this case the mime types are just fine. > > ** ** > > The setup is: IIS 7, Geoserver (2.1.2) on Tomcat via ISAPI redirect. > > ** ** > > When looking in the Geoserver logfile, I noticed the following when trying > to delete o10004_kol1.sld: > > ** ** > > 2012-07-05 12:19:52,269 DEBUG > [security.RESTfulPathBasedFilterInvocationDefinitionMap] - ~~ > antPath= /** methodList= [Ljava.lang.String;@22880c2b > > 2012-07-05 12:19:52,269 DEBUG > [security.RESTfulPathBasedFilterInvocationDefinitionMap] - method[0]: GET* > *** > > 2012-07-05 12:19:52,269 DEBUG > [security.RESTfulPathBasedFilterInvocationDefinitionMap] - Candidate is: > '/rest/styles/o10004_kol1'; antPath is /**; matchedPath=true; > matchedMethods=true > > 2012-07-05 12:19:52,269 DEBUG [ows.OWSHandlerMapping] - Looking up handler > for [/rest/styles/O10004_kol1] > > 2012-07-05 12:19:52,269 DEBUG [catalog.rest] - GET style O10004_kol1 > > 2012-07-05 12:19:52,285 DEBUG [geoserver.rest] - Failed to lookup template > O10004_kol1.ftl > > java.io.FileNotFoundException: Template O10004_kol1.ftl not found. > > ** ** > > It says it cannot find a FTL file. What is this FTL file? Never heard of > it and surely we never used it before for deleting a style via REST. > > ** ** > > Anyone with some indept knowledge about this? If needed, I have a complete > logfile (on VERBOSE level). > > ** ** > > ** ** > > Best regards, > Martijn Coenen > > [image: Beschrijving: Beschrijving: Beschrijving: > http://www.covadis.nl/emailkop/logo.gif] > > Covadis b.v. > > t: 026 3616600 > > Geograaf 12 > > f: 026 3612317 > > 6921 EW Duiven > > e: coe...@covadis.nl > > ** ** > > ** ** > > > -- > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > ___ > Geoserver-users mailing list > Geoserver-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/geoserver-users > > <>-- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ Geoserver-users mailing list Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users
[Geoserver-users] 405, FTL and REST delete of SLD
Hello, We are using REST to DELETE style information from Geoserver. It works very well except on one implementation at one of our customers. A DELETE request returns a 405 error. Normally this would be a MIME-type issue, but in this case the mime types are just fine. The setup is: IIS 7, Geoserver (2.1.2) on Tomcat via ISAPI redirect. When looking in the Geoserver logfile, I noticed the following when trying to delete o10004_kol1.sld: 2012-07-05 12:19:52,269 DEBUG [security.RESTfulPathBasedFilterInvocationDefinitionMap] - ~~ antPath= /** methodList= [Ljava.lang.String;@22880c2b 2012-07-05 12:19:52,269 DEBUG [security.RESTfulPathBasedFilterInvocationDefinitionMap] - method[0]: GET 2012-07-05 12:19:52,269 DEBUG [security.RESTfulPathBasedFilterInvocationDefinitionMap] - Candidate is: '/rest/styles/o10004_kol1'; antPath is /**; matchedPath=true; matchedMethods=true 2012-07-05 12:19:52,269 DEBUG [ows.OWSHandlerMapping] - Looking up handler for [/rest/styles/O10004_kol1] 2012-07-05 12:19:52,269 DEBUG [catalog.rest] - GET style O10004_kol1 2012-07-05 12:19:52,285 DEBUG [geoserver.rest] - Failed to lookup template O10004_kol1.ftl java.io.FileNotFoundException: Template O10004_kol1.ftl not found. It says it cannot find a FTL file. What is this FTL file? Never heard of it and surely we never used it before for deleting a style via REST. Anyone with some indept knowledge about this? If needed, I have a complete logfile (on VERBOSE level). Best regards, Martijn Coenen [Beschrijving: Beschrijving: Beschrijving: http://www.covadis.nl/emailkop/logo.gif] Covadis b.v. t: 026 3616600 Geograaf 12 f: 026 3612317 6921 EW Duiven e: coe...@covadis.nl <>-- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ Geoserver-users mailing list Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users