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

Warn About Trailing Slash In URL #134

Merged
merged 1 commit into from
Jun 7, 2017
Merged

Conversation

lkiesow
Copy link
Member

@lkiesow lkiesow commented Jun 3, 2017

This patch adds a warning if the base URL configuration value ends with
a /. That configuration should contain nothing of the services paths.
Hence, a trailing slash is very likely a configuration issue which needs
to be addressed by the user.

This fixes #132

This patch adds a warning if the base URL configuration value ends with
a `/`. That configuration should contain nothing of the services paths.
Hence, a trailing slash is very likely a configuration issue which needs
to be addressed by the user.

This fixes opencast#132
@coveralls
Copy link

coveralls commented Jun 3, 2017

Coverage Status

Coverage decreased (-0.1%) to 97.076% when pulling 01e1791 on lkiesow:rstrip-slash into d124356 on opencast:master.

@lkiesow lkiesow added the ready label Jun 3, 2017
@lkiesow lkiesow added this to the 2.2 milestone Jun 3, 2017
@JanKoppe
Copy link
Contributor

JanKoppe commented Jun 6, 2017

Maybe instead of just warning, we could actually catch and mitigate those errors with the urlparse library. https://docs.python.org/2/library/urlparse.html#urlparse.urljoin

Seems like it would be just 1-2 additional lines.

@JanKoppe
Copy link
Contributor

JanKoppe commented Jun 7, 2017

I'll take your answere here: https://bitbucket.org/opencast-community/matterhorn/pull-requests/1555/mh-12255-warn-about-path-in-base-url/diff#comment-38314537

I see your point and do aggree with it. Let's keept it simple, stupid.

@JanKoppe JanKoppe merged commit 9f4a0aa into opencast:master Jun 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Issue when starting PyCA
3 participants