You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by "Rurik Thomas Greenall (Created) (JIRA)" <ji...@apache.org> on 2012/01/31 21:24:13 UTC
[jira] [Created] (JENA-206) RDFJSONWriter does not escape escape
characters
RDFJSONWriter does not escape escape characters
-----------------------------------------------
Key: JENA-206
URL: https://issues.apache.org/jira/browse/JENA-206
Project: Jena
Issue Type: Bug
Components: ARQ
Affects Versions: ARQ 2.9.1
Reporter: Rurik Thomas Greenall
RDFJSONWiter does not escape RDF data containing inverted commas (") properly, so the JSON output is illegal.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (JENA-206) RDFJSONWriter does not escape escape
characters
Posted by "Paolo Castagna (Resolved) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JENA-206?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Paolo Castagna resolved JENA-206.
---------------------------------
Resolution: Fixed
Fix Version/s: ARQ 2.9.1
Thank you Rurik for finding the bug and having created the issue.
By the way, I don't think the Talis Platform is using the Jena's RDF/JSON support (yet) (simply because it wasn't there at the time).
> RDFJSONWriter does not escape escape characters
> -----------------------------------------------
>
> Key: JENA-206
> URL: https://issues.apache.org/jira/browse/JENA-206
> Project: Jena
> Issue Type: Bug
> Components: ARQ
> Affects Versions: ARQ 2.9.1
> Reporter: Rurik Thomas Greenall
> Assignee: Paolo Castagna
> Labels: arq, json
> Fix For: ARQ 2.9.1
>
> Attachments: RdfJsonUnescapedStringsPatch.patch, json-unescaped.txt
>
>
> RDFJSONWiter does not escape RDF data containing inverted commas (") properly, so the JSON output is illegal.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (JENA-206) RDFJSONWriter does not escape escape
characters
Posted by "Rurik Thomas Greenall (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JENA-206?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13197764#comment-13197764 ]
Rurik Thomas Greenall commented on JENA-206:
--------------------------------------------
Paolo,I believe you're right as Talis' JSON behaves differently (as does that provided by the morph.talis.com service). I am glad that Jena provides RDFJSON support as this allows implementers to provide a consistent and reliable JSON interface for all platforms, which is very important for our applications.
> RDFJSONWriter does not escape escape characters
> -----------------------------------------------
>
> Key: JENA-206
> URL: https://issues.apache.org/jira/browse/JENA-206
> Project: Jena
> Issue Type: Bug
> Components: ARQ
> Affects Versions: ARQ 2.9.1
> Reporter: Rurik Thomas Greenall
> Assignee: Paolo Castagna
> Labels: arq, json
> Fix For: ARQ 2.9.1
>
> Attachments: RdfJsonUnescapedStringsPatch.patch, json-unescaped.txt
>
>
> RDFJSONWiter does not escape RDF data containing inverted commas (") properly, so the JSON output is illegal.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Assigned] (JENA-206) RDFJSONWriter does not escape escape
characters
Posted by "Paolo Castagna (Assigned) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JENA-206?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Paolo Castagna reassigned JENA-206:
-----------------------------------
Assignee: Paolo Castagna
> RDFJSONWriter does not escape escape characters
> -----------------------------------------------
>
> Key: JENA-206
> URL: https://issues.apache.org/jira/browse/JENA-206
> Project: Jena
> Issue Type: Bug
> Components: ARQ
> Affects Versions: ARQ 2.9.1
> Reporter: Rurik Thomas Greenall
> Assignee: Paolo Castagna
> Labels: arq, json
> Attachments: RdfJsonUnescapedStringsPatch.patch, json-unescaped.txt
>
>
> RDFJSONWiter does not escape RDF data containing inverted commas (") properly, so the JSON output is illegal.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Closed] (JENA-206) RDFJSONWriter does not escape escape
characters
Posted by "Paolo Castagna (Closed) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JENA-206?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Paolo Castagna closed JENA-206.
-------------------------------
> RDFJSONWriter does not escape escape characters
> -----------------------------------------------
>
> Key: JENA-206
> URL: https://issues.apache.org/jira/browse/JENA-206
> Project: Jena
> Issue Type: Bug
> Components: ARQ
> Affects Versions: ARQ 2.9.1
> Reporter: Rurik Thomas Greenall
> Assignee: Paolo Castagna
> Labels: arq, json
> Fix For: ARQ 2.9.1
>
> Attachments: RdfJsonUnescapedStringsPatch.patch, json-unescaped.txt
>
>
> RDFJSONWiter does not escape RDF data containing inverted commas (") properly, so the JSON output is illegal.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (JENA-206) RDFJSONWriter does not escape escape
characters
Posted by "Hudson (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JENA-206?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13197576#comment-13197576 ]
Hudson commented on JENA-206:
-----------------------------
Integrated in Jena_ARQ #435 (See [https://builds.apache.org/job/Jena_ARQ/435/])
JENA-206
Patch applied, thank you Rob.
castagna :
Files :
* /incubator/jena/Jena2/ARQ/trunk/src/main/java/org/openjena/atlas/json/io/JSWriter.java
* /incubator/jena/Jena2/ARQ/trunk/src/test/java/org/openjena/riot/out/TestOutputRDFJSON.java
> RDFJSONWriter does not escape escape characters
> -----------------------------------------------
>
> Key: JENA-206
> URL: https://issues.apache.org/jira/browse/JENA-206
> Project: Jena
> Issue Type: Bug
> Components: ARQ
> Affects Versions: ARQ 2.9.1
> Reporter: Rurik Thomas Greenall
> Assignee: Paolo Castagna
> Labels: arq, json
> Attachments: RdfJsonUnescapedStringsPatch.patch, json-unescaped.txt
>
>
> RDFJSONWiter does not escape RDF data containing inverted commas (") properly, so the JSON output is illegal.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (JENA-206) RDFJSONWriter does not escape escape
characters
Posted by "Rob Vesse (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JENA-206?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rob Vesse updated JENA-206:
---------------------------
Attachment: RdfJsonUnescapedStringsPatch.patch
Patch which fixes JSWriter so that value(String value) calls outputQuotedString() rather than printing the quotes manually and the string verbatim
Adds additional test to TestOutputRDFJSON which covers escaping of various characters
> RDFJSONWriter does not escape escape characters
> -----------------------------------------------
>
> Key: JENA-206
> URL: https://issues.apache.org/jira/browse/JENA-206
> Project: Jena
> Issue Type: Bug
> Components: ARQ
> Affects Versions: ARQ 2.9.1
> Reporter: Rurik Thomas Greenall
> Labels: arq, json
> Attachments: RdfJsonUnescapedStringsPatch.patch, json-unescaped.txt
>
>
> RDFJSONWiter does not escape RDF data containing inverted commas (") properly, so the JSON output is illegal.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (JENA-206) RDFJSONWriter does not escape escape
characters
Posted by "Rurik Thomas Greenall (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JENA-206?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rurik Thomas Greenall updated JENA-206:
---------------------------------------
Attachment: json-unescaped.txt
Some RSS 1.0 from Talis Platform that contains (starting line 533) unescaped characters.
> RDFJSONWriter does not escape escape characters
> -----------------------------------------------
>
> Key: JENA-206
> URL: https://issues.apache.org/jira/browse/JENA-206
> Project: Jena
> Issue Type: Bug
> Components: ARQ
> Affects Versions: ARQ 2.9.1
> Reporter: Rurik Thomas Greenall
> Labels: arq, json
> Attachments: json-unescaped.txt
>
>
> RDFJSONWiter does not escape RDF data containing inverted commas (") properly, so the JSON output is illegal.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira