On Wed, Jul 24, 2013 at 6:52 PM, Daniele Romagnoli <
[email protected]> wrote:
> Hi guys,
> I didn't receive any feedback on this.
> I have encountered again the issue on windows which converts my
> "pgraster://" string into a "pgraster:\ file" which let fail my URL parsing
> code.
> I would like to do something like this on that utility method.
> The last else in GeoserverDataDirectory.findDataFileFile simply returns
> new File(path).
>
> I would do instead something like this:
> File file = new File(path);
> if (file.exists()) {
> return file;
> }
> return null;
>
Where do you see that? Afaik GeoServerDataDirectory ends up delegating to
this method,
which seems to be checking for existance on all resources:
https://github.com/geoserver/geoserver/blob/master/src/platform/src/main/java/org/geoserver/platform/GeoServerResourceLoader.java#L191
If that is true, then checking if the returned obj is not null and use the
original string should suffice.
Btw, this should also fix the SDE raster source
Cheers
Andrea
--
==
Our support, Your Success! Visit http://opensdi.geo-solutions.it for more
information.
==
Ing. Andrea Aime
@geowolf
Technical Lead
GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549
http://www.geo-solutions.it
http://twitter.com/geosolutions_it
-------------------------------------------------------
------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel