Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WFS-T misquoted literal #8

Closed
bermud opened this issue Jul 24, 2014 · 1 comment
Closed

WFS-T misquoted literal #8

bermud opened this issue Jul 24, 2014 · 1 comment
Assignees
Labels
Milestone

Comments

@bermud
Copy link

bermud commented Jul 24, 2014

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 Montreal!</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>Munchen</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 Montreal!'.
    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)  
    ... ... ...  

Originally reported in the OGC CITE issue tracker: issue #947

Opened: 2014-04-24 07:35:38 Last Updated: 2014-06-09 11:47:28

@bermud
Copy link
Author

bermud commented Jul 24, 2014

Fixed in 2.0-r16. Replaced apostrophe with predefined XML entity (').
Entered By: Martell, Richard - 2014-06-09 11:47:28

@bermud bermud added this to the r16 milestone Oct 14, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants