Daniele Romagnoli created GEOS-5931 |
Issue Type: |
Improvement |
Affects Versions: |
2.3.4, 2.4-beta |
Assignee: |
|
Created: |
26/Jul/13 3:52 AM |
Description: |
ResourcePool.getGridCoverageReader always tries to find a File from the coverageStore url String when the reader is null. There are some cases (as an instance, for custom plugins like ArcSDE or PGRaster automatic configuration I’m working on) where the url is something like this: sde://user:pass@anonymised.com:port/instance or pgraster://user:pass@anonymised.com:port:db.schema…@anonymised.com In those cases it would be surely bettere if we don’t force the URL to be converted to a File and let it as a String so that the underlying GridCoverageReader will know how to properly parse that String. For this reason, I think it would be better if GeoserverDataDirectory.findDataFile returns a File from a String only in case that file really exist; returning null otherwise. I was thinking if instead of changing the ImageMosaicJDBC code to try to parse Files having similar strange path (pgraster://something), we could relax somehow this “force to be a File” behaviour on ResourcePool… We can probably think about returning null (as a File, to continue passing down a string) in case we see a “something://” prefix longer than a certain amount of chars (to make sure that C:/ still work)… (Do we risk by this way to improperly parse some peculiar network mapping / protocol I’m unaware of?) What are your thoughts on this topic? |
Project: |
|
Priority: |
Minor |
Reporter: |