Repository navigation
[Server] Send the CSRF header in the SCIM database-failure test - #2072
Merged
Merged
Conversation
unitycatalog#1994 requires X-Requested-With: XMLHttpRequest on cookie-authenticated writes. testScimCreateUserDatabaseFailureIsAServerError, added by unitycatalog#1999, sends a SCIM create with the UC_TOKEN cookie and no such header, so it now gets 403 instead of the 500 it checks, and fails on main. Co-authored-by: Isaac <[email protected]> Signed-off-by: Shubham Bansal <[email protected]>
yili-db
approved these changes
Oct 28, 2026
timothyw553
approved these changes
Oct 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR Checklist
docsis updatedDescription of changes
mainfailsAuthServiceTest.testScimCreateUserDatabaseFailureIsAServerError, and so does every open PR's "All tests" job, because CI tests each PR merged withmain.#1994 requires
X-Requested-With: XMLHttpRequeston writes authenticated with theUC_TOKENcookie. This test, added by #1999 before #1994 merged, sends a SCIM create with that cookie and no header, so it gets403 Forbiddeninstead of the500it checks. It now sends the header, like the other cookie tests #1994 updated.📐 Design notes & details
6ee532c), which already has [Server] Log every 5xx with its cause and a request ID #1999's test,AuthServiceTestpasses (8/8). Onmain(45320ad) it fails withexpected: 500 Internal Server Error but was: 403 Forbidden. With this change it passes onmain(10/10).This pull request and its description were written by Isaac.