Hi Jose,
This is unfortunately a known issue... but indeed a bug. More or less
reported here:
http://jira.codehaus.org/browse/GEOS-4023
The fix is a bit tricky however... it involves changing the way we read in
the entity that is POST'd or PUT.
On Thu, Feb 17, 2011 at 3:16 AM, jose garcia <[email protected]> wrote:
> Hi
>
> I create a FeatureType for a postgis table using REST API sending in the
> request enabled to true and the FeatureType/Layer is created correctly as
> enabled (featuretype.xml contains the correct value for enabled)
> ena<enabled>true</enabled>
>
> The problem is trying later to update the FeatureType, to set Native SRS
> (as not recognized by default by GS):
>
> - If not send the enabled parameter at all. The REST API changes to
> false the enabled state in featuretype.xml.
> - If I add to this request enabled as true is ok.
>
>
> I though REST API doesn't change a property unless you send an explicit
> value in request. Is that not true? It can happen this with other properties
> apart of enabled?
>
> Using GeoServer 2.0.2
>
> Thanks and regards,
> Jose GarcĂa
>
>
> ------------------------------------------------------------------------------
> The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
> Pinpoint memory and threading errors before they happen.
> Find and fix more than 250 security defects in the development cycle.
> Locate bottlenecks in serial and parallel code that limit performance.
> http://p.sf.net/sfu/intel-dev2devfeb
> _______________________________________________
> Geoserver-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
>
--
Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.
------------------------------------------------------------------------------
Index, Search & Analyze Logs and other IT data in Real-Time with Splunk
Collect, index and harness all the fast moving IT data generated by your
applications, servers and devices whether physical, virtual or in the cloud.
Deliver compliance at lower cost and gain new business insights.
Free Software Download: http://p.sf.net/sfu/splunk-dev2dev
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users