Skip to content

Conversation

@davidlehn
Copy link
Member

Fix _removeDotSegments logic to pass all the json-ld.org RFC3986 tests.

Oddly this doesn't require the use of the hasAuthority parameter. Is this just luck with the current json-ld.org test cases or is there an edge case where this would fail?

This patch requires json-ld/json-ld.org#525 to fully pass the tests.

Fix _removeDotSegments logic to pass all the json-ld.org RFC3986 tests.
@davidlehn davidlehn requested a review from dlongley July 21, 2017 01:26
Copy link
Member

@dlongley dlongley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Passes tests... LGTM

@davidlehn
Copy link
Member Author

Will likely hold off on merging this and work on a fix that also handles the current tests that don't remove dot segments from base URIs.

It's also been noted this perhaps should be a minor bump since the outputs could change if these edge case URIs were used as input, even though it's due to a buggy implementation.

Fixes various RFC3986 tests with dot segments in the base path.
After code updates the hasAuthority paramter is no longer used.
@davidlehn
Copy link
Member Author

@dlongley Please re-review. Thanks.

@davidlehn
Copy link
Member Author

Note, this now passes all RFC3986 tests as is.

Copy link
Member

@dlongley dlongley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still LGTM if it's passing tests. Still a breaking change.

@dlongley
Copy link
Member

dlongley commented Sep 6, 2017

Note: also needs to be ported to 0.5.x if not already.

@davidlehn davidlehn added this to the v0.5.0 milestone Jan 12, 2018
@davidlehn
Copy link
Member Author

Fixed via other commits and released in 0.5.17.

@davidlehn davidlehn closed this Jan 25, 2018
@davidlehn davidlehn deleted the remove-dot-segments branch January 25, 2018 22:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants