Default data dir does not survive a restart
-------------------------------------------
Key: GEOS-3440
URL: http://jira.codehaus.org/browse/GEOS-3440
Project: GeoServer
Issue Type: Bug
Affects Versions: 2.0-RC1
Reporter: David Winslow
Assignee: Justin Deoliveira
I'm using the default data directory via the jetty:run Maven task, with the following command:
{code}
$ mvn jetty:run -DGEOSERVER_DATA_DIR=/home/dwins/gs-release-data/ -Prestconfig,geosearch
{code}
Starting from a fresh copy of the data dir (an unmodified copy of what's in SVN, using svn export), I get the following:
{code}
$ curl http://localhost:8080/geoserver/rest/workspaces/default.json
{"workspace":{"name":"topp","dataStores":"http:\/\/localhost:8080\/geoserver\/rest\/workspaces\/default\/datastores.json","coverageStores":"http:\/\/localhost:8080\/geoserver\/rest\/workspaces\/default\/coveragestores.json"}}
{code}
If I then restart and try again, I get something different:
{code}
$ curl http://localhost:8080/geoserver/rest/workspaces/default.json
{"workspace":{"name":"nurc","dataStores":"http:\/\/localhost:8080\/geoserver\/rest\/workspaces\/default\/datastores.json","coverageStores":"http:\/\/localhost:8080\/geoserver\/rest\/workspaces\/default\/coveragestores.json"}}
{code}
Further restarts do not seem to keep changing the default workspace, so perhaps this is an issue with the data directory conversion code.
--
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