subfolder lookup of GeoServerDataDirectory ------------------------------------------
Key: GEOS-3725 URL: http://jira.codehaus.org/browse/GEOS-3725 Project: GeoServer Issue Type: Bug Components: Configuration, Global Affects Versions: 2.0.0 Environment: Windows XP SP 3, Intel Core i5 Reporter: Frank Assignee: Justin Deoliveira Priority: Minor There are two methods in org.geoserver.config.GeoServerDataDirectory, which are named semantically related, but do very different lookups. These two methods are GeoServerDataDirectory.findOrCreateDataDir(String) and GeoServerDataDirectory.findDataDir(String). Think of a configuration, where the base directory of a GeoServerDataDirectory is set to something like C:\myData (GEOSERVER_DATA_DIR=C:\myData ). GeoServerDataDirectory.findOrCreateDataDir("coverages") would then create (or find) the file object "C:\myData\coverages". A later call of GeoServerDataDirectory.findDataDir("coverages") would not find this file object, despite it has been successfully created. I think it is because it searches for "C:\myData\data\coverages". Additionally, a file stored in "C:\mydata\coverages\" cannot be retrieved by GeoServerDataDirectory.findDataFile("coverages\myFile.tif"). -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira ------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev _______________________________________________ Geoserver-devel mailing list Geoserver-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-devel