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

root: disable APPEND_SLASH #6928

Merged
merged 1 commit into from Sep 26, 2023
Merged

root: disable APPEND_SLASH #6928

merged 1 commit into from Sep 26, 2023

Conversation

BeryJu
Copy link
Member

@BeryJu BeryJu commented Sep 18, 2023

Details

Currently, with APPEND_SLASH enabled, requests to core/users will be redirected to core/users/. While this is fine for GET requests, with POST requests the redirect causes the request payload to get lost and the method turns into a GET, which causes a lot of hard-to-find errors. With this setting disabled, requests to core/users will simply return a 404.


Checklist

  • Local tests pass (ak test authentik/)
  • The code has been formatted (make lint-fix)

If an API change has been made

  • The API schema has been updated (make gen-build)

If changes to the frontend have been made

  • The code has been formatted (make web)
  • The translation files have been updated (make i18n-extract)

If applicable

  • The documentation has been updated
  • The documentation has been formatted (make website)

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
@BeryJu BeryJu requested a review from a team as a code owner September 18, 2023 11:24
@netlify
Copy link

netlify bot commented Sep 18, 2023

Deploy Preview for authentik-storybook canceled.

Name Link
🔨 Latest commit c4ea44d
🔍 Latest deploy log https://app.netlify.com/sites/authentik-storybook/deploys/65083377142d340008a0ec74

Copy link
Contributor

@smusali smusali left a comment

Choose a reason for hiding this comment

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

lgtm

@codecov
Copy link

codecov bot commented Sep 18, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: -1.52% ⚠️

Comparison is base (70630aa) 92.72% compared to head (c4ea44d) 91.20%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6928      +/-   ##
==========================================
- Coverage   92.72%   91.20%   -1.52%     
==========================================
  Files         567      567              
  Lines       27927    27928       +1     
==========================================
- Hits        25893    25469     -424     
- Misses       2034     2459     +425     
Flag Coverage Δ
e2e 51.17% <100.00%> (-<0.01%) ⬇️
integration ?
unit 89.61% <100.00%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed Coverage Δ
authentik/root/settings.py 88.62% <100.00%> (+0.10%) ⬆️

... and 18 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@BeryJu BeryJu merged commit e55e27d into main Sep 26, 2023
61 of 63 checks passed
@BeryJu BeryJu deleted the root/disable-append-slash branch September 26, 2023 16:59
kensternberg-authentik added a commit that referenced this pull request Sep 27, 2023
* main: (41 commits)
  root: fix missing /lifecycle in path
  website/blog: add info-block to blog about m2m (#7002)
  root: handle SIGHUP and SIGUSR2, healthcheck gunicorn (#6630)
  flows: stage_invalid() makes flow restart depending on invalid_response_action setting (#6780)
  core: bump psycopg from 3.1.11 to 3.1.12 (#6997)
  core: bump pydantic from 2.4.0 to 2.4.1 (#6998)
  web: bump the sentry group in /web with 2 updates (#6999)
  web: bump pyright from 1.1.328 to 1.1.329 in /web (#7000)
  website/blog: improved sentence (#6995)
  website/blog: fix missing link in m2m post (#6994)
  web/user: fix incorrect link to admin interface (#6993)
  root: disable APPEND_SLASH (#6928)
  root: replace boj/redistore with vendored version of rbcervilla/redisstore (#6988)
  sources/ldap: add default property mapping to mirror directory structure (#6990)
  website/blogs: Blog about m2m (#6974)
  root: make Celery worker concurrency configurable (#6837)
  root: make postgres connection in makefile customizable (#6977)
  core: prevent self-impersonation (#6885)
  web: bump @typescript-eslint/parser from 6.7.2 to 6.7.3 in /web (#6984)
  core: bump pydantic from 2.3.0 to 2.4.0 (#6979)
  ...
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.

None yet

2 participants