Windows - Unix slash directions for setting ArcSDE raster URL

Description

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://bnutschassword@myserver:5151/#NDHUB.AERIALPHOTOS_6INCH</url>
</format>

I get a crash. In the logs I see:

26 Oct 14:48:45 WARN - connectiong via file-hack to ArcSDE Raster: sde:\bnutschass@myserver:5151#NDHUB.AERIALPHOTOS_6INCH
26 Oct 14:48:45 WARN - connectiong via file-hack to ArcSDE Raster: sde:\bnutschass@myserver:5151#NDHUB.AERIALPHOTOS_6INCH
26 Oct 14:48:45 WARN - Unhandled Exception thrown: class java.lang.IllegalArgumentException
26 Oct 14:48:45 ERROR [org.apache.catalina.core.ContainerBase.] - Servlet.service() for servlet action threw exception
java.lang.IllegalArgumentException: ArcSDE Raster URL must be of the form sde://userass@sdehostort/

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@server/#blah") -> File -> String =
sde:/saul:saul@server/#blah

On windows, the same set of translations leads to

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

Environment

None

Activity

Show:
codehaus
April 10, 2015, 4:26 PM

CodeHaus Comment From: jericks - Time: Tue, 3 Mar 2009 12:47:18 -0600
---------------------
<p>I ran into this problem also. On windows:</p>

<p>sde://userassword@hostort/database#rastertable</p>

<p>gets turned into</p>

<p>sde:\userassword@hostort\database#rastertable</p>

<p>I worked up a patch to fix this which I will attach.</p>

<p>Thanks,

Jared Erickson</p>

codehaus
April 10, 2015, 4:26 PM

CodeHaus Comment From: jericks - Time: Tue, 3 Mar 2009 12:48:28 -0600
---------------------
<p>This is the patch that made GeoServer 1.7.2 work.</p>

codehaus
April 10, 2015, 4:26 PM

CodeHaus Comment From: aaime - Time: Fri, 4 Dec 2009 08:03:38 -0600
---------------------
<p>Gabriel, was the patch ever applied?</p>

Assignee

Unassigned

Reporter

codehaus

Triage

None

Fix versions

None

Affects versions

Components

Priority

Medium
Configure