Altinn / altinn-notifications

Altinn platform microservice for handling notifications (mail, sms, etc)
MIT License
2 stars 3 forks source link

Invalid condition endpoints can result in a 500 internal server error #571

Open SandGrainOne opened 1 week ago

SandGrainOne commented 1 week ago

Description of the bug

Any value that isn't a valid URI will cause an Internal Server Error.

Steps To Reproduce

  1. Create an order with an invalid URI:
    {
    "subject": "Test email subject",
    "body": "Test email body",
    "recipients": [
        {
            "emailAddress": "some.adress@altinn.no"
        }
    ],
    "conditionEndpoint": "adasdad saa sd"
    }
  2. Send the request and observe the 500 Internal Server Error response.

Acceptance criteria