[Geoserver-devel] backwards compatibility fixed

I fixed up 1.5 branch to make GeoServer load old data directories from both 1.3 and 1.4. I also changed it to successfully start up if there are no datasets defined (dataStores, FeatureTypes, coverages, namespaces, styles). If this isn't desirable please let me know and I will change it.
I will apply the change to trunk next week once Justin is done.

--
Brent Owens
(The Open Planning Project)

Brent Owens ha scritto:

I fixed up 1.5 branch to make GeoServer load old data directories from both 1.3 and 1.4. I also changed it to successfully start up if there are no datasets defined (dataStores, FeatureTypes, coverages, namespaces, styles). If this isn't desirable please let me know and I will change it.

Way cool Brent :slight_smile:
Just one thing I noticed and don't know if you have fixed. What happens
if you have no namespace defined, and try to define a datastore?
Afaik it was breaking.
Cheers
Andrea

oh then it will probably still break.
What it should really be doing is throwing an appropriate error in the UI. I will see what I can do and if I want to tackle struts today.

Brent Owens
(The Open Planning Project)

aaime wrote:

Brent Owens ha scritto:

I fixed up 1.5 branch to make GeoServer load old data directories from both 1.3 and 1.4. I also changed it to successfully start up if there are no datasets defined (dataStores, FeatureTypes, coverages, namespaces, styles). If this isn't desirable please let me know and I will change it.

Way cool Brent :slight_smile:
Just one thing I noticed and don't know if you have fixed. What happens
if you have no namespace defined, and try to define a datastore?
Afaik it was breaking.
Cheers
Andrea

!DSPAM:1005,45ba46a5292761336712104!

That's great.

One thing I'd like for us to do is _never_ use the WEB-INF/ catalog.xml and services.xml in our distributions. I think we should support it, but it shouldn't be an example at all.

So always ship with a data_dir. And if not, like in the war, then we should either just ship it empty (which I think would be fine), or else we should just put the whole data_dir in WEB-INF, with it's normal structure.

Brent, could you also check the data_dir docs. People have been saying they're confusing...

Brent Owens wrote:

I fixed up 1.5 branch to make GeoServer load old data directories from both 1.3 and 1.4. I also changed it to successfully start up if there are no datasets defined (dataStores, FeatureTypes, coverages, namespaces, styles). If this isn't desirable please let me know and I will change it.
I will apply the change to trunk next week once Justin is done.

--
Chris Holmes
The Open Planning Project
http://topp.openplans.org

Brent Owens wrote:

I fixed up 1.5 branch to make GeoServer load old data directories from both 1.3 and 1.4. I also changed it to successfully start up if there are no datasets defined (dataStores, FeatureTypes, coverages, namespaces, styles). If this isn't desirable please let me know and I will change it.
I will apply the change to trunk next week once Justin is done.

yeah! hopefully this is included in trunk?

Rob

yeh it will be next week when Justin is done porting OWS changes.

Brent Owens
(The Open Planning Project)

Rob Atkinson wrote:

Brent Owens wrote:

I fixed up 1.5 branch to make GeoServer load old data directories from both 1.3 and 1.4. I also changed it to successfully start up if there are no datasets defined (dataStores, FeatureTypes, coverages, namespaces, styles). If this isn't desirable please let me know and I will change it.
I will apply the change to trunk next week once Justin is done.

yeah! hopefully this is included in trunk?

Rob

!DSPAM:1005,45ba848b20614750375898!