Justin, if you add base maps (in the admin app --> config | WMS | Contents)
these are lost without the update config portion of reloadconfiguration().
It is basically what is stored in the services.xml file in the geoserver
data dir.

On Mon, Jan 12, 2009 at 4:00 PM, Justin Deoliveira <[email protected]>wrote:

> Hi Sam,
>
> Thanks for the feedback. I agree it looks like an explicit update to the
> "config" objects is missing. What type of information is being lost on
> shapefile upload? Unless I am mistaken not updating the config objects
> should only affect the UI.
>
> -Justin
>
> Sam Brodkin wrote:
>
>> Justin,
>>
>> all good suggestions.
>> We are using the RESTful API intensively now with 1.7.1 and it's working
>> well with a one exception that we should keep in mind going forward.
>> If you look in RESTUtils in the reloadconfiguration() method, you'll
>> notice that the update config portion is left out.  The code (taken from the
>> loadGeoserver() method of org.vfny.geoserver.action.LoadXMLAction) was not
>> copied over because the config objects come from the ServletContext (not
>> available in the RESTlet).  I'm hoping the "new" catalogue API won't have
>> this limitation (of being tightly coupled to the web app).  Anyway as a
>> result we're losing some configuration data after a shapefile upload.
>>
>> In the meantime does anyone know a workaround to get the config (global,
>> data, wcs, wfs, and wms) reloaded without making an HTTP call to the admin
>> webapp (that won't be available for us in production.
>>
>>
------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to