[Geoserver-devel] [jira] Created: (GEOS-1447) Windows - Unix slash directions for setting ArcSDE raster URL

Windows - Unix slash directions for setting ArcSDE raster URL
-------------------------------------------------------------

                 Key: GEOS-1447
                 URL: http://jira.codehaus.org/browse/GEOS-1447
             Project: GeoServer
          Issue Type: Bug
          Components: ArcSDE
    Affects Versions: 1.6.0-beta3
         Environment: Windows XP
            Reporter: Bob Nutsch
            Assignee: Andrea Aime

When I manually edit the catalog.xml and enter this info, e.g.,

    <format namespace = "NDHUB" enabled = "true" id = "NDHUB_aerialphotos" >
       <type>ArcSDE Raster</type>
       <url>sde://bnutsch:password@anonymised.com:5151/#NDHUB.AERIALPHOTOS_6INCH</url>
    </format>

I get a crash. In the logs I see:

26 Oct 14:48:45 WARN [org.geotools.arcsde.gce] - connectiong via file-hack to ArcSDE Raster: sde:\bnutsch:pass@anonymised.com:5151\#NDHUB.AERIALPHOTOS_6INCH
26 Oct 14:48:45 WARN [org.geotools.arcsde.gce] - connectiong via file-hack to ArcSDE Raster: sde:\bnutsch:pass@anonymised.com:5151\#NDHUB.AERIALPHOTOS_6INCH
26 Oct 14:48:45 WARN [org.apache.struts.action.RequestProcessor] - Unhandled Exception thrown: class java.lang.IllegalArgumentException
26 Oct 14:48:45 ERROR [org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/geoserver].[action]] - Servlet.service() for servlet action threw exception
java.lang.IllegalArgumentException: ArcSDE Raster URL must be of the form sde://user:pass@anonymised.com:port/[dbname]#rasterTableName -- Got sde:\bnutsch:pass@anonymised.com:5151\#NDHUB.AERIALPHOTOS_6INCH

From Saul:

The problem is that in order to allow arbitrary parameter passing
from the geoserver UI to the geotools backend (which takes an Object as
a coverageStore creation parameter) everything gets turned into a File.

So on unix, the following URL gets turned into a file with the following
path:

URL("sde://saul:saul@anonymised.com/#blah") -> File -> String =
sde:/saul:saul@anonymised.com/#blah

On windows, the same set of translations leads to

URL("sde://saul:saul@anonymised.com/#blah") -> File -> String =
sde:\saul:saul@anonymised.com\#blah

--
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