You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@jena.apache.org by "Holger Knublauch (Jira)" <ji...@apache.org> on 2022/11/09 15:11:00 UTC

[jira] [Created] (JENA-2349) GeoSPARQL leaves open iterators

Holger Knublauch created JENA-2349:
--------------------------------------

             Summary: GeoSPARQL leaves open iterators
                 Key: JENA-2349
                 URL: https://issues.apache.org/jira/browse/JENA-2349
             Project: Apache Jena
          Issue Type: Bug
          Components: GeoSPARQL
            Reporter: Holger Knublauch


These two lines in GenericSpatialPropertyFunction L133 do not close the iterators created by find(). This causes problems with downstream code (such as our product) which expects that all query iterators get closed to have a clean transaction boundary.

Node lat = graph.find(subject, SpatialExtension.GEO_LAT_NODE, null).next().getObject();

Node lon = graph.find(subject, SpatialExtension.GEO_LON_NODE, null).next().getObject();

The above is particularly problematic for MultiUnion graphs, but may also for malformed graphs where a subject has two or more geo:lat/long triples.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: jira-unsubscribe@jena.apache.org
For additional commands, e-mail: jira-help@jena.apache.org