Skip to content

Conversation

@exsii
Copy link
Contributor

@exsii exsii commented Aug 7, 2025

License Acceptance

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

no idea where tf the other 2 commits came from lol

stadust and others added 6 commits July 12, 2025 17:49
Sometimes, we have authenticated and unauthenticated variants of the
same endpoint, with the implicit assumption that if a request had no
authentication information (e.g. headers, cookies, whatevs), then rocket
would pick the unauthenticated one. However, this only worked if the
FromRequest impl for Auth<T> actually forwarded instead of returning an
Unauthorized error on missing authentication information (as rocket will
abort request processing when Outcome::Error is returned). Yet, this was
not the case.

While we are at it, forward with the correct status code (unauthorized
instead of not found)

Closes stadust#270

Signed-off-by: stadust <43299462+stadust@users.noreply.github.com>
@codecov
Copy link

codecov bot commented Aug 7, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 35.06%. Comparing base (00eac37) to head (ee4e77d).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #287   +/-   ##
=======================================
  Coverage   35.06%   35.06%           
=======================================
  Files         121      121           
  Lines        6188     6188           
=======================================
  Hits         2170     2170           
  Misses       4018     4018           

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@stadust stadust merged commit 1d8b925 into stadust:master Aug 10, 2025
2 checks passed
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