Return to Issues Table 

WFS-T misquoted literal

Issue ID#:
947
Category:
WFS 2.0
Type:
Issue
Status:
Fixed - Requires Review
Priority:
Normal
Entered By:
Fischer, Jean-Michel
Created On:
2014-04-24 07:35:38
Updated By:
Bermudez, Luis
Last Update:
2014-07-24 18:30:08
Assigned To:
Martell, Richard

Original Issue Details:

Test (I guess it is: "updateGMLName") crashes, see below:


Apr 24, 2014 1:09:20 PM com.sun.jersey.api.client.filter.LoggingFilter log

INFO: 4 * Client out-bound request
4 > GET http://services.interactive-instruments.de/cite2013tp/cgi-bin/sf/wfs?service=WFS&version=2.0.0&request=GetFeature&count=10&startindex=0&storedquery_id=urn:ogc:def:query:OGC-WFS::GetFeatureById&id=City.3


Apr 24, 2014 1:09:20 PM com.sun.jersey.api.client.filter.LoggingFilter log

INFO: 4 * Client in-bound response
4 < 200
4 < Transfer-Encoding: chunked
4 < Date: Thu, 24 Apr 2014 11:09:20 GMT
4 < Content-Disposition: inline; filename="XtraServerGetFeature.xml"
4 < Keep-Alive: timeout=5, max=92
4 < Connection: Keep-Alive
4 < Content-Type: application/gml+xml; version=3.2.1; charset=utf-8
4 < Server: Apache/2.4.9 (Unix)
4 <
<?xml version="1.0" encoding="utf-8"?>
<ci:City gml:id="City.3" xmlns:ci="http://www.interactive-instruments.de/namespaces/cite/wfst" xmlns:gml="http://www.opengis.net/gml/3.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.interactive-instruments.de/namespaces/cite/wfst http://services.interactive-instruments.de/cite2013tp/schema/wfst.xsd http://www.opengis.net/gml/3.2 http://services.interactive-instruments.de/cite2013tp/schema/ogc/gml/3.2.1/gml.xsd http://www.opengis.net/gml/3.2 http://services.interactive-instruments.de/cite2013tp/schema/ogc/gml/3.2.1/gml.xsd">
<gml:name>Ce n'est pas Vieux-Port de Montréal!</gml:name>
<ci:location>
<gml:Point gml:id="city.id.3.location.Geom_0" srsName="urn:ogc:def:crs:EPSG::4326" srsDimension="2">
<gml:pos>48.135800000000 11.577600000000</gml:pos>
</gml:Point>
</ci:location>
<ci:id>3</ci:id>
<ci:name>München</ci:name>
<ci:inhabitants>1353100</ci:inhabitants>
</ci:City>

Apr 24, 2014 1:09:20 PM org.opengis.cite.iso19142.util.TestSuiteLogger log
WARNING: XPath expression cannot be evaluated: gml:name[1] = 'Ce n'est pas Vieux-Port de Montréal!'.
javax.xml.transform.TransformerException: misquoted literal... expected single quote!
at com.sun.org.apache.xpath.internal.compiler.XPathParser.error(XPathParser.java:612)
at com.sun.org.apache.xpath.internal.compiler.Lexer.tokenize(Lexer.java:203)
at com.sun.org.apache.xpath.internal.compiler.Lexer.tokenize(Lexer.java:100)
at com.sun.org.apache.xpath.internal.compiler.XPathParser.initXPath(XPathParser.java:114)
... ... ...








Status: Fixed - Requires Review
Assigned To: Martell, Richard

Fixed in 2.0-r16. Replaced apostrophe with predefined XML entity (&apos;).

Hours Worked: 0.00
Entered By: Martell, Richard - 2014-06-09 11:47:28
Status: Fixed - Requires Review
Assigned To: Martell, Richard

Moved to GitHub: https://github.com/opengeospatial/ets-wfs20/issues/8

Hours Worked: 0.00
Entered By: Bermudez, Luis - 2014-07-24 18:30:08