Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change the expected Publishing API behaviour around included URLs #876

Conversation

cbaines
Copy link
Contributor

@cbaines cbaines commented Jan 4, 2019

Updating Rails from 5.1 to 5.2 for the Publishing API seems to have
changed the URLs which are included in responses, for example, for the
next page of results.

I've been trying to decide if this is better or worse, and I think
that it's better. Mostly because percent encoding normally occurs when
a URL is created from it's component parts [1], and these are full URLs.

1: https://tools.ietf.org/html/rfc3986#page-14

Updating Rails from 5.1 to 5.2 for the Publishing API seems to have
changed the URLs which are included in responses, for example, for the
next page of results.

I've been trying to decide if this is better or worse, and I think
that it's better. Mostly because percent encoding normally occurs when
a URL is created from it's component parts [1], and these are full URLs.

1: https://tools.ietf.org/html/rfc3986#page-14
Copy link
Member

@erino erino left a comment

Choose a reason for hiding this comment

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

I don't have a strong opinion, so happy to go with the Rails defaults

@cbaines cbaines merged commit 4da0de3 into master Jan 4, 2019
@thomasleese thomasleese deleted the update-expected-publishing-api-behaviour-regarding-percent-encoding-of-urls-in-responses branch January 30, 2019 11:52
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.

2 participants