You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@any23.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2018/08/02 18:13:00 UTC

[jira] [Commented] (ANY23-380) RDFa SAXParseException: attribute was already specified

    [ https://issues.apache.org/jira/browse/ANY23-380?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16567307#comment-16567307 ] 

ASF GitHub Bot commented on ANY23-380:
--------------------------------------

GitHub user HansBrende opened a pull request:

    https://github.com/apache/any23/pull/110

    ANY23-380 disallow duplicate attribute keys

    I disallowed duplicate attribute keys in html to avoid `org.xml.sax.SAXParseException`s.
    
    Along the way, I also cleaned up some annoying or unnecessary logging/console output produced by our massive suite of test cases.
    
    Also cleaned up some javadoc/miscellaneous items.
    
    mvn clean test -> all tests passed

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/HansBrende/any23 ANY23-380

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/any23/pull/110.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #110
    
----
commit 4e3011a4d80545f04563f427687f4fa74e17103f
Author: Hans <fi...@...>
Date:   2018-08-01T21:06:55Z

    ANY23-380 disallow duplicate attribute keys

commit 159aeb489473f600213142a746d39a49e3d3548b
Author: Hans <fi...@...>
Date:   2018-08-02T17:46:44Z

    cleaned up annoying logging/console output

commit 0291f588d04859053ef4eb8845686bad824b4461
Author: Hans <fi...@...>
Date:   2018-08-02T18:01:19Z

    added license and javadoc

----


> RDFa SAXParseException: attribute was already specified
> -------------------------------------------------------
>
>                 Key: ANY23-380
>                 URL: https://issues.apache.org/jira/browse/ANY23-380
>             Project: Apache Any23
>          Issue Type: Bug
>          Components: extractors
>    Affects Versions: 2.3
>            Reporter: Hans Brende
>            Priority: Major
>             Fix For: 2.3
>
>
> When browsing the page https://www.lokalkompass.de/bilder/kirche.html I came upon the following exception:
>  
> {noformat}
> org.eclipse.rdf4j.rio.RDFParseException: org.xml.sax.SAXParseException; lineNumber: 235; columnNumber: 511; Attribute "dort..." was already specified for element "a".
> 	at org.semarglproject.rdf4j.rdf.rdfa.RDF4JRDFaParser.parse(RDF4JRDFaParser.java:111)
> 	at org.semarglproject.rdf4j.rdf.rdfa.RDF4JRDFaParser.parse(RDF4JRDFaParser.java:95)
> 	at org.apache.any23.extractor.rdf.BaseRDFExtractor.run(BaseRDFExtractor.java:178)
> 	... 34 more
> Caused by: org.semarglproject.rdf.ParseException: org.xml.sax.SAXParseException; lineNumber: 235; columnNumber: 511; Attribute "dort..." was already specified for element "a".
> 	at org.semarglproject.rdf.rdfa.RdfaParser.processException(RdfaParser.java:1141)
> 	at org.semarglproject.source.XmlSource.process(XmlSource.java:50)
> 	at org.semarglproject.source.StreamProcessor.processInternal(StreamProcessor.java:87)
> 	at org.semarglproject.source.BaseStreamProcessor.process(BaseStreamProcessor.java:167)
> 	at org.semarglproject.source.BaseStreamProcessor.process(BaseStreamProcessor.java:154)
> 	at org.semarglproject.rdf4j.rdf.rdfa.RDF4JRDFaParser.parse(RDF4JRDFaParser.java:109)
> 	... 36 more
> Caused by: org.xml.sax.SAXParseException; lineNumber: 235; columnNumber: 511; Attribute "dort..." was already specified for element "a".
> 	at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
> 	at org.semarglproject.source.XmlSource.process(XmlSource.java:48)
> 	... 40 more
> {noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)