[Geoserver-devel] Mystery science theatre 1.5.3 - an edited layer is FOREVER

I have being working on my usual uDig edit and went to do a QA run with the latest / greatest. Problem was I needed to clean up my data from the last run ... so I uninstalled GeoServer and reinstalled and proceeded to see what I could see.

Problem is my data was still the same! The edited taz_shapefile was still around.

So I carefully deleted all of:
- data_dir/data/taz_shapes

So with the empty directory I went to hit "load" expecting to see a bit of a red bar. Sadly it was not the case. Load is no longer a complete reset and try again from disk.

Next up I went to try the various entries in the demo page; taz_roads was still there! All the other taz datasets that I had not edited were missing.

Shuting down geoserver and restarted gave me the expected:
java.io.FileNotFoundException: C:\Program Files\GeoServer 1.5.3\data_dir\data\taz_shapes\tasmania_cities.shp
java.io.FileNotFoundException: C:\Program Files\GeoServer 1.5.3\data_dir\data\taz_shapes\tasmania_water_bodies.shp
java.io.FileNotFoundException: C:\Program Files\GeoServer 1.5.3\data_dir\data\taz_shapes\tasmania_state_boundaries.shp

And my expected red bar now shows 78% success.

But note that the roads data is missing from that list - so here is the mystery where is the edited data being written to that it lasts between runs? and between installs? Sounds like a magic temp folder to me ...

Stay tuned for tomorrows update ... just because I am going to let my machine search overnight.
Jody

Just to confirm my data directory was set for this:
GEOSERVER_DATA_DIR=C:\Program Files\GeoServer 1.5.3\data_dir

After searching I found a copy of these files here:
C:\Program Files\GeoServer 1.5.3\webapps\geoserver\conf\data\taz_shapes\tasmania_roads.shp

So the mystery is half solved; but how did my changes make it through the geoserver uninstall / reinstall process?
Jody

Here is copy #3:
- C:\Users\Jody\AppData\Local\VirtualStore\Program Files\GeoServer 1.5.3\data_dir\data\taz_shapes\tasmania_roads.shp

Most significantly this directory *only* has the tasmania_roads.shp / dbf / shx files. So this is the stuff
that makes it through the uninstall / reinstall process!

Yeah!
Jody

Just to confirm my data directory was set for this:
GEOSERVER_DATA_DIR=C:\Program Files\GeoServer 1.5.3\data_dir

After searching I found a copy of these files here:
C:\Program Files\GeoServer 1.5.3\webapps\geoserver\conf\data\taz_shapes\tasmania_roads.shp

So the mystery is half solved; but how did my changes make it through the geoserver uninstall / reinstall process?
Jody

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel
  

Found a few details on AppData:
- http://www.devsource.com/article2/0,1759,1999637,00.asp

I have being working on my usual uDig edit and went to do a QA run with the latest / greatest. Problem was I needed to clean up my data from the last run ... so I uninstalled GeoServer and reinstalled and proceeded to see what I could see.

Problem is my data was still the same! The edited taz_shapefile was still around.

So I carefully deleted all of:
- data_dir/data/taz_shapes

So with the empty directory I went to hit "load" expecting to see a bit of a red bar. Sadly it was not the case. Load is no longer a complete reset and try again from disk.

Next up I went to try the various entries in the demo page; taz_roads was still there! All the other taz datasets that I had not edited were missing.

Shuting down geoserver and restarted gave me the expected:
java.io.FileNotFoundException: C:\Program Files\GeoServer 1.5.3\data_dir\data\taz_shapes\tasmania_cities.shp
java.io.FileNotFoundException: C:\Program Files\GeoServer 1.5.3\data_dir\data\taz_shapes\tasmania_water_bodies.shp
java.io.FileNotFoundException: C:\Program Files\GeoServer 1.5.3\data_dir\data\taz_shapes\tasmania_state_boundaries.shp

And my expected red bar now shows 78% success.

But note that the roads data is missing from that list - so here is the mystery where is the edited data being written to that it lasts between runs? and between installs? Sounds like a magic temp folder to me ...

Stay tuned for tomorrows update ... just because I am going to let my machine search overnight.
Jody

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel
  

I have tried running with a data directory set in order to work around this problem - now when editing a road
from uDig the roads layer no longer renderers (using the open layers preview the roads layer is also missing). Looking at the raw shapefiles in the data director I can see that they are unharmed (and unchanged).

Rebooting geoserver brings the content back (still unmodified) - the config load / save / apply buttons are ineffective only a full shutdown and restart restores the content.

I am going to go back to having the data director in the default location; at least that way editing was possible.
Jody

Jody Garnett wrote:

Here is copy #3:
- C:\Users\Jody\AppData\Local\VirtualStore\Program Files\GeoServer 1.5.3\data_dir\data\taz_shapes\tasmania_roads.shp

Most significantly this directory *only* has the tasmania_roads.shp / dbf / shx files. So this is the stuff
that makes it through the uninstall / reinstall process!

Yeah!
Jody
  

Back to the default data directory location and everything is "working" ie any edits are going off to AppData, but the edits are occuring.

Jody