You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I have a valid user logged in, that has created an instance with a valid instanceId, and I ask for an not existing but valid data id on the data/{dataGuid} GET endpoint, the server responds with 500 internal server error.
Expected behavior: The server should respond with a 404 not found, as I'm asking for an element that doesn't exist. Potentially a 403 bad request. This works properly if the request is not a properly formatted guid, but with proper guid formatting the server assumes it made a mistake.
Steps To Reproduce
Authenticate as a test user with access to vpfo : user_id: 160616; party_id: 51882621
Create instance: POST https://brg.apps.tt02.altinn.no/brg/aarsregnskap-vpfo-202405/instances?instanceOwnerPartyId=51882621
Get data element with a valid Guid that does not exist: GET https://brg.apps.tt02.altinn.no/brg/aarsregnskap-vpfo-202405/instances/51882621/{{schema_instance_id}}/data/82a351d9-807f-4949-9d6b-3cc7eea38a17
The server will respond with 500
Additional Information
The bug is not exclusive to VPFO, and should be reproduceable with any app / data element
The text was updated successfully, but these errors were encountered:
Description of the bug
If I have a valid user logged in, that has created an instance with a valid instanceId, and I ask for an not existing but valid data id on the data/{dataGuid} GET endpoint, the server responds with 500 internal server error.
Expected behavior: The server should respond with a 404 not found, as I'm asking for an element that doesn't exist. Potentially a 403 bad request. This works properly if the request is not a properly formatted guid, but with proper guid formatting the server assumes it made a mistake.
Steps To Reproduce
user_id: 160616; party_id: 51882621
POST https://brg.apps.tt02.altinn.no/brg/aarsregnskap-vpfo-202405/instances?instanceOwnerPartyId=51882621
GET https://brg.apps.tt02.altinn.no/brg/aarsregnskap-vpfo-202405/instances/51882621/{{schema_instance_id}}/data/82a351d9-807f-4949-9d6b-3cc7eea38a17
Additional Information
The bug is not exclusive to VPFO, and should be reproduceable with any app / data element
The text was updated successfully, but these errors were encountered: