[
https://issues.apache.org/jira/browse/JENA-1713?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Andy Seaborne resolved JENA-1713.
---------------------------------
Resolution: Fixed
Assignee: Andy Seaborne
Fix Version/s: Jena 3.12.0
> Riot emits a WARN on valid IRI data
> -----------------------------------
>
> Key: JENA-1713
> URL: https://issues.apache.org/jira/browse/JENA-1713
> Project: Apache Jena
> Issue Type: Bug
> Components: IRI
> Affects Versions: Jena 3.10.0
> Reporter: Gregory Williams
> Assignee: Andy Seaborne
> Priority: Minor
> Fix For: Jena 3.12.0
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
>
> riot 3.10.0 emits a NON_INITIAL_DOT_SEGMENT warning on data that I believe if
> valid:
>
> {code:java}
> $ cat test.ttl
> @base <http://example.org/foo/bar/> .
> <./../../../useless/../../../still-root> <> "not ok" .
> $ riot -q test.ttl
> 10:56:50 WARN riot :: [line: 2, col: 1 ] Bad IRI:
> <http://example.org/still-root> Code: 8/NON_INITIAL_DOT_SEGMENT in PATH: The
> path contains a segment /../ not at the beginning of a relative reference, or
> it contains a /./ These should be removed.
> <http://example.org/still-root> <http://example.org/foo/bar/> "not ok" .
> {code}
>
> The resulting IRI is what I expect, but the warning seems spurious. The cited
> ref text in the [definition of that
> warning|https://github.com/apache/jena/blob/69571e7ebc3bfde6ec3bc4e96d136428d7f7378e/jena-iri/src/main/xml/org/apache/jena/iri/impl/violations.xml#L705]
> suggests that it should only be warning if the dot segments are used outside
> of a relative IRI:
> {quote}The complete path segments "." and ".." are intended <em>only</em> for
> use within relative references
> {quote}
> In this example, however, they *are* being used in a relative IRI, and seem
> to be successfully removed during resolution against the base IRI to produce
> the expected output.
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)