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

[server] Strip trailing slash from public-endpoint, disallow trailing slash #877

Merged
merged 4 commits into from
Jun 5, 2022

Conversation

ix5
Copy link
Member

@ix5 ix5 commented May 17, 2022

Checklist

  • All new and existing tests are passing
  • (If adding features:) I have added tests to cover my changes
  • (If docs changes needed:) I have updated the documentation accordingly.
  • I have added an entry to CHANGES.rst because this is a user-facing change or an important bugfix
  • I have written proper commit message(s)

isso: config: Strip trailing public-endpoint slash

Fixes #498

docs: server-conf: public-endpoint trailing '/' forbidden

Starting in 0.13, a trailing slash in [server] public-endpoint is now discouraged and throws a warning.

tests: guard: Remove obsolete werkzeug 0.8 check


Other considerations

Ideally, we should strip the trailing slash automatically from any config value that contains a URL, and be consistent with examples in docs, example config files.

@ix5 ix5 added server (Python) server code bug labels May 17, 2022
@ix5 ix5 added this to the 0.13 milestone May 17, 2022
@ix5 ix5 force-pushed the public-endpoint-trailing-slash branch from da00646 to defa429 Compare May 27, 2022 04:55
@ix5 ix5 force-pushed the public-endpoint-trailing-slash branch from defa429 to de07b3a Compare June 5, 2022 17:50
@ix5 ix5 changed the title [server] Strip trailing slash from public-endpoint, allow trailing slashes for routes [server] Strip trailing slash from public-endpoint, disallow trailing slash Jun 5, 2022
@ix5 ix5 force-pushed the public-endpoint-trailing-slash branch from de07b3a to 11876dd Compare June 5, 2022 17:54
@ix5 ix5 force-pushed the public-endpoint-trailing-slash branch from 11876dd to 091b069 Compare June 5, 2022 17:57
@ix5 ix5 merged commit cf9b1ad into isso-comments:master Jun 5, 2022
@ix5 ix5 deleted the public-endpoint-trailing-slash branch June 5, 2022 18:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug server (Python) server code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[admin]: Trailing slash in public-endpoint (was: 404 on admin page)
1 participant