[Geoserver-devel] [jira] Created: (GEOS-2210) WFS-T Insert and WFS-Y Update uses diffrent dateformats

WFS-T Insert and WFS-Y Update uses diffrent dateformats
-------------------------------------------------------

                 Key: GEOS-2210
                 URL: http://jira.codehaus.org/browse/GEOS-2210
             Project: GeoServer
          Issue Type: Bug
    Affects Versions: 1.6.4
            Reporter: Mårten Swärd
            Assignee: Andrea Aime

I'll just paste in the question that I sent to geoservers mailing-list and Adrea Aimes answer..

Hello!

Below is two examples of XML code for WFS-T Insert and WFS-T Update
that I've used. Both of them works but look at the dateformat, I can't
use the same dateformat for the insert-xml as in the update-xml, if I
do that I'll get IllegalArgumentExeption "parsing faild for
validtime". I'm using Geoserver 1.6.4. Is it me that's using the WFS-T
in a non-standard way, a bug or is this the normal behaivior?

<wfs:Transaction xmlns:wfs="http://www.opengis.net/wfs&quot; version="1.0.0"
xmlns:smhi="http://www.smhi.se" service="WFS"><wfs:Update
typeName="smhi:wind"><wfs:Property><wfs:Name>windgeometry</wfs:Name><w
fs:Value><gml:Polygon xmlns:gml="http://www.opengis.net/gml&quot;
srsName="EPSG:4326"><gml:outerBoundaryIs><gml:LinearRing><gml:coordina
tes decimal="." cs="," ts=" ">14.40657279125,61.900057868125
15.90084982,60.02674579 17.98443694,60.3690318 26.83560219,71.65370062
17.06112604,58.44056756 19.58366756,58.31914873
20.44360986,61.18612513
14.40657279125,61.900057868125</gml:coordinates></gml:LinearRing></gml
:outerBoundaryIs></gml:Polygon></wfs:Value></wfs:Property><wfs:Propert
y><wfs:Name>minwindspeed</wfs:Name><wfs:Value>10</wfs:Value></wfs:Prop
erty><wfs:Property><wfs:Name>maxwindspeed</wfs:Name><wfs:Value>20</wfs
:Value></wfs:Property><wfs:Property><wfs:Name>forecastrun</wfs:Name><w
fs:Value>2008-09-03
06:00:00+00</wfs:Value></wfs:Property><wfs:Property><wfs:Name>validtim
e</wfs:Name><wfs:Value>***2008-09-03
16:00:00+00*</wfs:Value></wfs:Property><ogc:Filter
xmlns:ogc="http://www.opengis.net/ogc&quot;&gt;&lt;ogc:FeatureId
fid="wind.12"/></ogc:Filter></wfs:Update></wfs:Transaction>

<wfs:Transaction xmlns:wfs="http://www.opengis.net/wfs&quot; version="1.0.0"
xmlns:smhi="http://www.smhi.se" service="WFS"><wfs:Insert><smhi:wind
xmlns:smhi="smhi"><smhi:windgeometry><gml:Polygon
xmlns:gml="http://www.opengis.net/gml&quot;&gt;&lt;gml:outerBoundaryIs&gt;&lt;gml:Linea
rRing><gml:coordinates decimal="." cs="," ts="
">12.9462890625,64.669921875
12.638671875,60.73681640625 14.85791015625,59.044921875
15.16552734375,61.96728515625
12.9462890625,64.669921875</gml:coordinates></gml:LinearRing></gml:out
erBoundaryIs>a</gml:Polygon></smhi:windgeometry><smhi:validtime>***200
8-09-****0****3T16:00:00Z*</smhi:validtime><smhi:forecastrun>2008-09-0
3T06:00:00Z</smhi:forecastrun><smhi:minwindspeed>8</smhi:minwindspeed>
<smhi:maxwindspeed>8</smhi:maxwindspeed></smhi:wind></wfs:Insert></wfs
:Transaction>

Oh hum, this is nasty... insert and update are hitting two different code paths in the xml parser, maybe that could explain why there is a different behaviour. Sounds like a bug to me, can you open a request on jira.codehaus.org?

Cheers
Andrea

--
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