datastore connection paramters contain spaces and can't be updated via REST
configuration
-----------------------------------------------------------------------------------------
Key: GEOS-4121
URL: http://jira.codehaus.org/browse/GEOS-4121
Project: GeoServer
Issue Type: Improvement
Components: REST
Affects Versions: 2.0.2
Reporter: Stefan Alfons Tzeggai
Assignee: Andrea Aime
Fix For: 2.0.3
If the "expose primary key" flag is activated for a datastore, the REST
XML API exposes this information as an connectionParamter of the datastore.
<connectionParameters>
....
<entry key="port">5432</entry>
<entry key="Expose primary keys">true</entry>
....
</connectionParameters>
But I see no way to set this parameter via rest. Usually the connection
parameters are passed as XML tags, but <Expose primary keys> is not a
valid tag, but rather a tag with two attributes:
> > com.thoughtworks.xstream.converters.ConversionException: : expected =
> > after attribute name (position: END_TAG seen ...</namespace><Expose primary
> > k... @1:267) : : expected = after attribute name (position: END_TAG seen
> > ...</namespace><Expose primary k... @1:267)
> > ---- Debugging information ----
> > message : : expected = after attribute name (position: END_TAG
> > seen ...</namespace><Expose primary k... @1:267)
> > cause-exception : com.thoughtworks.xstream.io.StreamException
> > cause-message : : expected = after attribute name (position: END_TAG
> > seen ...</namespace><Expose primary k... @1:267)
> > class : org.geoserver.catalog.impl.DataStoreInfoImpl
> > required-type : java.util.HashMap
> > line number : 1
Is there a trick? Or is general a solution needed for Connection Parameters
containing spaces?
Maybe we could just do something like replacing all spaces with underscores
when presenting and parsing REST XML connection parameters?
If one could point me to the classes that expose and parse these parameters I
could try to write a patch.
--
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
------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:
Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel