[
https://issues.apache.org/jira/browse/JENA-2172?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17422952#comment-17422952
]
ASF subversion and git services commented on JENA-2172:
-------------------------------------------------------
Commit 0c0a509e3b0f5f636306275ef2b7ab273e99e1fc in jena's branch
refs/heads/main from Andy Seaborne
[ https://gitbox.apache.org/repos/asf?p=jena.git;h=0c0a509 ]
Merge pull request #1079 from afs/fixes
JENA-2172, JENA-2167 and small improvements.
> WantPropertyElement.rdf_n() is not thread-safe
> ----------------------------------------------
>
> Key: JENA-2172
> URL: https://issues.apache.org/jira/browse/JENA-2172
> Project: Apache Jena
> Issue Type: Bug
> Components: RDF/XML
> Affects Versions: Jena 2.7.4, Jena 4.2.0
> Reporter: ian green
> Assignee: Andy Seaborne
> Priority: Minor
>
> In 2.7.4, concurrent calls to Model.read (on RDF/XML) are occasionally
> corrupting internal parser state which results in NPE. This corruption is
> sticky - all subsequent RDF/XML parsing (at least via Model.read) is
> potentially affected.
> com.hp.hpl.jena.rdf.arp.states.WantPropertyElement._rdf_n can be left with
> null elements when multiple threads race to expand the array. One
> consequence of such null elements is that WantPropertyElement.predicate can
> be null, causing a NullPointerException when toObject() is called.
> This was discovered in 2.7.4, but the same code is present in
> org.apache.jena.rdfxml.xmlinput.states.WantPropertyElement. (I don't know
> the role that code plays in the latest Jena versions, so this issue may not
> be manifest in main.)
--
This message was sent by Atlassian Jira
(v8.3.4#803005)