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

stricter handling of missing partyid #1092

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

adamhaeger
Copy link
Contributor

@adamhaeger adamhaeger commented Feb 7, 2025

Removed logic in stateless controller that would return the party of the logged in user if no partyid was provided.

Description

As noted in the comments of StatelessDataController.cs, if the client did not provide partyid, we would use the party of the logged in user.

This caused the error in the issue below.

This PR removes that fallback, we will now throw an error if the partyid is missing, or we cannot lookup instanceowner based on it.

Related Issue(s)

Verification

  • Your code builds clean without any errors or warnings
  • Manual testing done (required)
  • Relevant automated test added (if you find this hard, leave it and we'll help out)
  • All tests run green

…the logged in user if no partyid was provided
@adamhaeger
Copy link
Contributor Author

/publish

@adamhaeger adamhaeger added the bugfix Label Pull requests with bugfix. Used when generation releasenotes label Feb 10, 2025
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
B Maintainability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

@adamhaeger
Copy link
Contributor Author

/publish

Copy link

github-actions bot commented Feb 10, 2025

PR release:

⚙️ Building...
✅ Done!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix Label Pull requests with bugfix. Used when generation releasenotes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant