Skip to content

[Server] Send the CSRF header in the SCIM database-failure test - #2072

Merged
yili-db merged 1 commit into
unitycatalog:mainfrom
shba24:uc-fix-scim-test-csrf
Oct 28, 2026
Merged

yili-db merged 1 commit into
unitycatalog:mainfrom
shba24:uc-fix-scim-test-csrf

Conversation

@shba24

@shba24 shba24 commented Oct 28, 2026

Copy link
Copy Markdown
Collaborator

PR Checklist

  • A description of the changes is added to the description of this PR.
  • If there is a related issue, make sure it is linked to this PR.
  • If you've fixed a bug or added code that should be tested, add tests!
  • If you've added or modified a feature, documentation in docs is updated

Description of changes

main fails AuthServiceTest.testScimCreateUserDatabaseFailureIsAServerError, and so does every open PR's "All tests" job, because CI tests each PR merged with main.

#1994 requires X-Requested-With: XMLHttpRequest on writes authenticated with the UC_TOKEN cookie. This test, added by #1999 before #1994 merged, sends a SCIM create with that cookie and no header, so it gets 403 Forbidden instead of the 500 it checks. It now sends the header, like the other cookie tests #1994 updated.

📐 Design notes & details

This pull request and its description were written by Isaac.

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]>
@shba24
shba24 requested a review from timothyw553 October 28, 2026 01:40
@yili-db
yili-db merged commit 4395d4f into unitycatalog:main Oct 28, 2026
18 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