Skip to content

Added error handling for empty delegation input.#2523

Open
lovoll wants to merge 2 commits intomainfrom
feature/remilovoll/26/03/2436-AddErrorWhenDelegatingNothing
Open

Added error handling for empty delegation input.#2523
lovoll wants to merge 2 commits intomainfrom
feature/remilovoll/26/03/2436-AddErrorWhenDelegatingNothing

Conversation

@lovoll
Copy link
Contributor

@lovoll lovoll commented Mar 12, 2026

If post endpoint for adding right keys is called with an empty list then return this as an error situation

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

Documentation

  • User documentation is updated with a separate linked PR in altinn-studio-docs. (if applicable)

@sonarqubecloud
Copy link

Quality Gate Passed Quality Gate passed for 'Authorization Altinn.Authorization.Api.Contracts'

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarQube Cloud

@sonarqubecloud
Copy link

Quality Gate Passed Quality Gate passed for 'Authorization Altinn.AccessManagement'

Issues
2 New issues
0 Accepted issues

Measures
0 Security Hotspots
25.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarQube Cloud

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.

1 participant