You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by "Andy Seaborne (JIRA)" <ji...@apache.org> on 2012/09/08 17:52:07 UTC

[jira] [Created] (JENA-318) Illeagl language tags (in RDF/XML) can cause

Andy Seaborne created JENA-318:
----------------------------------

             Summary: Illeagl language tags (in RDF/XML) can cause 
                 Key: JENA-318
                 URL: https://issues.apache.org/jira/browse/JENA-318
             Project: Apache Jena
          Issue Type: Bug
            Reporter: Andy Seaborne
            Assignee: Andy Seaborne
            Priority: Minor


(split from JENA-163)

Alexander Dutton writes:

It seems to be the following language tags in the data that cause this issue:

* i18n
* sr@latin

Both have invalid syntax as per BCP 47, but it might be worth catching this a little earlier and throwing a more appropriate error:

[alex@lucy jena-fuseki-0.2.4]$ curl -XPUT "http://localhost:3030/public/data?graph=http://creativecommons.org/publicdomain/zero/1.0/rdf" -d@rdf -H"Content-type: application/rdf+xml" -i
HTTP/1.1 100 Continue

HTTP/1.1 500 Different ids for http://xmlns.com/foaf/0.1/logo: allocated: expected [000000000000041D], got [000000000000041A]
Access-Control-Allow-Origin: *
Server: Fuseki (0.2.4)
Content-Length: 0


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (JENA-318) Illegal language tags (in RDF/XML) can cause exceptions in Fuseki+TDB.

Posted by "Andy Seaborne (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JENA-318?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13451363#comment-13451363 ] 

Andy Seaborne commented on JENA-318:
------------------------------------

Fuseki log starts:

15:43:15 WARN  Fuseki               :: {W115} Primary subtag must be between 1 and 8 alpha characters: sr@latin
15:43:15 WARN  Fuseki               :: Language not valid: sr@latin
15:43:15 WARN  Fuseki               :: {W115} Primary subtag must be between 1 and 8 alpha characters: i18n
15:43:15 WARN  Fuseki               :: Language not valid: i18n


                
> Illegal language tags (in RDF/XML) can cause exceptions in Fuseki+TDB.
> ----------------------------------------------------------------------
>
>                 Key: JENA-318
>                 URL: https://issues.apache.org/jira/browse/JENA-318
>             Project: Apache Jena
>          Issue Type: Bug
>            Reporter: Andy Seaborne
>            Assignee: Andy Seaborne
>            Priority: Minor
>         Attachments: JENA-318-data-bad-lang.rdf
>
>
> (split from JENA-163)
> Alexander Dutton writes:
> It seems to be the following language tags in the data that cause this issue:
> * i18n
> * sr@latin
> Both have invalid syntax as per BCP 47, but it might be worth catching this a little earlier and throwing a more appropriate error:
> [alex@lucy jena-fuseki-0.2.4]$ curl -XPUT "http://localhost:3030/public/data?graph=http://creativecommons.org/publicdomain/zero/1.0/rdf" -d@rdf -H"Content-type: application/rdf+xml" -i
> HTTP/1.1 100 Continue
> HTTP/1.1 500 Different ids for http://xmlns.com/foaf/0.1/logo: allocated: expected [000000000000041D], got [000000000000041A]
> Access-Control-Allow-Origin: *
> Server: Fuseki (0.2.4)
> Content-Length: 0

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (JENA-318) Illegal language tags (in RDF/XML) can cause exceptions in Fuseki+TDB.

Posted by "Andy Seaborne (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JENA-318?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andy Seaborne updated JENA-318:
-------------------------------

    Attachment: JENA-318-data-bad-lang.rdf

Only RDF/XML lets language tags through untouched.  Other formats parse the language tag in the parser so will generate errors at that stage.
                
> Illegal language tags (in RDF/XML) can cause exceptions in Fuseki+TDB.
> ----------------------------------------------------------------------
>
>                 Key: JENA-318
>                 URL: https://issues.apache.org/jira/browse/JENA-318
>             Project: Apache Jena
>          Issue Type: Bug
>            Reporter: Andy Seaborne
>            Assignee: Andy Seaborne
>            Priority: Minor
>         Attachments: JENA-318-data-bad-lang.rdf
>
>
> (split from JENA-163)
> Alexander Dutton writes:
> It seems to be the following language tags in the data that cause this issue:
> * i18n
> * sr@latin
> Both have invalid syntax as per BCP 47, but it might be worth catching this a little earlier and throwing a more appropriate error:
> [alex@lucy jena-fuseki-0.2.4]$ curl -XPUT "http://localhost:3030/public/data?graph=http://creativecommons.org/publicdomain/zero/1.0/rdf" -d@rdf -H"Content-type: application/rdf+xml" -i
> HTTP/1.1 100 Continue
> HTTP/1.1 500 Different ids for http://xmlns.com/foaf/0.1/logo: allocated: expected [000000000000041D], got [000000000000041A]
> Access-Control-Allow-Origin: *
> Server: Fuseki (0.2.4)
> Content-Length: 0

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Resolved] (JENA-318) Illegal language tags (in RDF/XML) can cause exceptions in Fuseki+TDB.

Posted by "Andy Seaborne (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JENA-318?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andy Seaborne resolved JENA-318.
--------------------------------

       Resolution: Fixed
    Fix Version/s: Fuseki 0.2.5
                   TDB 0.9.4

The Turtle/NTriples routers would have not allowed the lang tag at the parsing stage.

RDF/XML just has uninterpreted strings for lang tags so needs checking.

1/ Add mode to RIOT to generate a parse error for bad lang tags
2/ Make Fuseki protect against errors when inserting bad data (PUT, POST, Upload)
                
> Illegal language tags (in RDF/XML) can cause exceptions in Fuseki+TDB.
> ----------------------------------------------------------------------
>
>                 Key: JENA-318
>                 URL: https://issues.apache.org/jira/browse/JENA-318
>             Project: Apache Jena
>          Issue Type: Bug
>            Reporter: Andy Seaborne
>            Assignee: Andy Seaborne
>            Priority: Minor
>             Fix For: TDB 0.9.4, Fuseki 0.2.5
>
>         Attachments: JENA-318-data-bad-lang.rdf
>
>
> (split from JENA-163)
> Alexander Dutton writes:
> It seems to be the following language tags in the data that cause this issue:
> * i18n
> * sr@latin
> Both have invalid syntax as per BCP 47, but it might be worth catching this a little earlier and throwing a more appropriate error:
> [alex@lucy jena-fuseki-0.2.4]$ curl -XPUT "http://localhost:3030/public/data?graph=http://creativecommons.org/publicdomain/zero/1.0/rdf" -d@rdf -H"Content-type: application/rdf+xml" -i
> HTTP/1.1 100 Continue
> HTTP/1.1 500 Different ids for http://xmlns.com/foaf/0.1/logo: allocated: expected [000000000000041D], got [000000000000041A]
> Access-Control-Allow-Origin: *
> Server: Fuseki (0.2.4)
> Content-Length: 0

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (JENA-318) Illegal language tags (in RDF/XML) can cause exceptions in Fuseki+TDB.

Posted by "Andy Seaborne (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JENA-318?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andy Seaborne updated JENA-318:
-------------------------------

    Summary: Illegal language tags (in RDF/XML) can cause exceptions in Fuseki+TDB.  (was: Illeagl language tags (in RDF/XML) can cause )
    
> Illegal language tags (in RDF/XML) can cause exceptions in Fuseki+TDB.
> ----------------------------------------------------------------------
>
>                 Key: JENA-318
>                 URL: https://issues.apache.org/jira/browse/JENA-318
>             Project: Apache Jena
>          Issue Type: Bug
>            Reporter: Andy Seaborne
>            Assignee: Andy Seaborne
>            Priority: Minor
>
> (split from JENA-163)
> Alexander Dutton writes:
> It seems to be the following language tags in the data that cause this issue:
> * i18n
> * sr@latin
> Both have invalid syntax as per BCP 47, but it might be worth catching this a little earlier and throwing a more appropriate error:
> [alex@lucy jena-fuseki-0.2.4]$ curl -XPUT "http://localhost:3030/public/data?graph=http://creativecommons.org/publicdomain/zero/1.0/rdf" -d@rdf -H"Content-type: application/rdf+xml" -i
> HTTP/1.1 100 Continue
> HTTP/1.1 500 Different ids for http://xmlns.com/foaf/0.1/logo: allocated: expected [000000000000041D], got [000000000000041A]
> Access-Control-Allow-Origin: *
> Server: Fuseki (0.2.4)
> Content-Length: 0

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Closed] (JENA-318) Illegal language tags (in RDF/XML) can cause exceptions in Fuseki+TDB.

Posted by "Andy Seaborne (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JENA-318?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andy Seaborne closed JENA-318.
------------------------------

    
> Illegal language tags (in RDF/XML) can cause exceptions in Fuseki+TDB.
> ----------------------------------------------------------------------
>
>                 Key: JENA-318
>                 URL: https://issues.apache.org/jira/browse/JENA-318
>             Project: Apache Jena
>          Issue Type: Bug
>            Reporter: Andy Seaborne
>            Assignee: Andy Seaborne
>            Priority: Minor
>             Fix For: TDB 0.9.4, Fuseki 0.2.5
>
>         Attachments: JENA-318-data-bad-lang.rdf
>
>
> (split from JENA-163)
> Alexander Dutton writes:
> It seems to be the following language tags in the data that cause this issue:
> * i18n
> * sr@latin
> Both have invalid syntax as per BCP 47, but it might be worth catching this a little earlier and throwing a more appropriate error:
> [alex@lucy jena-fuseki-0.2.4]$ curl -XPUT "http://localhost:3030/public/data?graph=http://creativecommons.org/publicdomain/zero/1.0/rdf" -d@rdf -H"Content-type: application/rdf+xml" -i
> HTTP/1.1 100 Continue
> HTTP/1.1 500 Different ids for http://xmlns.com/foaf/0.1/logo: allocated: expected [000000000000041D], got [000000000000041A]
> Access-Control-Allow-Origin: *
> Server: Fuseki (0.2.4)
> Content-Length: 0

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira