Skip to content

rgw/auth: fix internal server error for presigned urls - #59983

Merged
cbodley merged 1 commit into
ceph:mainfrom
tobias-urdin:rgw-presigned-500
Oct 7, 2024
Merged

cbodley merged 1 commit into
ceph:mainfrom
tobias-urdin:rgw-presigned-500

Conversation

@tobias-urdin

Copy link
Copy Markdown
Contributor

We have special error handling for these cases but we don't check the negative value of the error so it
instead gets caught as an error not defined with a response and throws a http 500.

This was implement by [1] and the same way done
with [2].

[1] #55371
[2] #56044

Contribution Guidelines

  • To sign and title your commits, please refer to Submitting Patches to Ceph.

  • If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.

  • When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an x between the brackets: [x]. Spaces and capitalization matter when checking off items this way.

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands
  • jenkins retest this please
  • jenkins test classic perf
  • jenkins test crimson perf
  • jenkins test signed
  • jenkins test make check
  • jenkins test make check arm64
  • jenkins test submodules
  • jenkins test dashboard
  • jenkins test dashboard cephadm
  • jenkins test api
  • jenkins test docs
  • jenkins render docs
  • jenkins test ceph-volume all
  • jenkins test ceph-volume tox
  • jenkins test windows
  • jenkins test rook e2e

We have special error handling for these cases but we
don't check the negative value of the error so it
instead gets caught as an error not defined with a
response and throws a http 500.

This was implement by [1] and the same way done
with [2].

[1] ceph#55371
[2] ceph#56044

Signed-off-by: Tobias Urdin <[email protected]>
@tobias-urdin
tobias-urdin requested a review from a team as a code owner September 25, 2024 16:39
@github-actions github-actions Bot added the rgw label Sep 25, 2024
@tobias-urdin

tobias-urdin commented Sep 25, 2024 •

Copy link
Copy Markdown
Contributor Author

@cbodley this was backported/is in 19.x release as well so might want to pull this back in those releases as well

@adamemerson
adamemerson requested a review from cbodley September 27, 2024 20:21
@cbodley

cbodley commented Sep 27, 2024

Copy link
Copy Markdown
Contributor

@cbodley this was backported/is in 19.x release as well so might want to pull this back in those releases as well

thanks @tobias-urdin. it looks like #59984 conflicts with this one. if we need to backport this, it should merge before #59984

@cbodley

cbodley commented Sep 27, 2024

Copy link
Copy Markdown
Contributor

@tobias-urdin

Copy link
Copy Markdown
Contributor Author

you can merge this at your discretion and i will rebase #59984 on that, proposed as two different patches because this solves the immediate issue while the other patch was a proposal on (imo) a better approach but wasn't sure if it would allow a backport of that

@cbodley

cbodley commented Sep 30, 2024

Copy link
Copy Markdown
Contributor

@cbodley

cbodley commented Sep 30, 2024

Copy link
Copy Markdown
Contributor

jenkins test make check

@cbodley

cbodley commented Sep 30, 2024

Copy link
Copy Markdown
Contributor

@cbodley

cbodley commented Sep 30, 2024

Copy link
Copy Markdown
Contributor

jenkins test api

@cbodley

cbodley commented Oct 4, 2024

Copy link
Copy Markdown
Contributor

https://jenkins.ceph.com/job/ceph-api/82529/

dashboard.exceptions.DashboardException: Orchestrator is unavailable

@cbodley

cbodley commented Oct 4, 2024

Copy link
Copy Markdown
Contributor

jenkins test api

@cbodley

cbodley commented Oct 4, 2024

Copy link
Copy Markdown
Contributor

@cbodley

cbodley commented Oct 4, 2024

Copy link
Copy Markdown
Contributor

jenkins test make check

@cbodley

cbodley commented Oct 7, 2024

Copy link
Copy Markdown
Contributor

@cbodley
cbodley merged commit 6585161 into ceph:main Oct 7, 2024
@jzhu116-bloomberg

Copy link
Copy Markdown
Contributor

is there a s3 test case for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants