[1.17.2] [Bug] Automatische Rejection von Replies schlägt wegen invalidem reject-reply Event

Description of the bug:

  1. Nach 2 Wochen im Status Submitted soll eine Reply rejected werden
  2. Beim Versuch das SET für die Rejection zu erstellen wird eine Payload für das Event gesetzt
  3. Die Payload passt nicht zum SET-Schema in v1.2.1, so dass die Validierung fehlschlägt
  4. Die Rejection bricht ab und die Reply bleibt in Submitted

Current behavior:

  • Validierung schlägt fehl, weil falsche Payload für Type in RejectReplyEvent gesetzt wird beim automatisierten Reject (ReplyRejectionService#createRejectReplyEventPayload)
  • Payload:
{
  "sub": "reply:702fab1a-5a19-47d1-a1b1-8d64be98abcb",
  "$schema": "https://schema.fitko.de/fit-connect/set-payload/1.2.1/set-payload.schema.json",
  "iss": "https://api.fitko.de/fit-connect/",
  "txn": "case:9c1a2c44-da29-4f44-9e31-0fd61ce5d8c0",
  "iat": 1707312167,
  "jti": "87fdb360-75bb-4ef9-a77b-f9e0d4ba7750",
  "events": {
    "https://schema.fitko.de/fit-connect/events/reject-reply": {
      "problems": [
        {
          "details": "Der Reply ist älter als die Löschfrist erlaubt und wurde vom Zustelldienst automatisch rejected.",
          "instance": "reply",
          "type": "https://schema.fitko.de/fit-connect/submission-api/problems/automatic-reject-of-reply",
          "title": "Reject durch automatischen Timeout"
        }
      ]
    }
  }
}
  • Exception
[

"The security event token does not match the schema. The following error(s) were detected: '$.events.https://schema.fitko.de/fit-connect/events/reject-reply.problems[0].type: does not match the regex pattern ^https:\\/\\/schema\\.fitko\\.de\\/fit-connect\\/events\\/problems\\/[-a-z]+$'."

]

Expected behavior:

  • Richtige Payload wird beim Type gesetzt URI._create_(Schemas._EVENTS_PROBLEM_URL_ + "automatic-reject-of-reply")
  • Reply kann in den Rejected Zustand übergehen Payload:
{
  "sub": "reply:702fab1a-5a19-47d1-a1b1-8d64be98abcb",
  "$schema": "https://schema.fitko.de/fit-connect/set-payload/1.2.1/set-payload.schema.json",
  "iss": "https://api.fitko.de/fit-connect/",
  "txn": "case:9c1a2c44-da29-4f44-9e31-0fd61ce5d8c0",
  "iat": 1707312167,
  "jti": "87fdb360-75bb-4ef9-a77b-f9e0d4ba7750",
  "events": {
    "https://schema.fitko.de/fit-connect/events/reject-reply": {
      "problems": [
        {
          "details": "Der Reply ist älter als die Löschfrist erlaubt und wurde vom Zustelldienst automatisch rejected.",
          "instance": "reply",
          "type": "https://schema.fitko.de/fit-connect/events/problems/automatic-reject-of-reply",
          "title": "Reject durch automatischen Timeout"
        }
      ]
    }
  }
}

Environments:

DEV, TEST

Additional Information:

Dependency / relationship to other issues:

Responsible person / team:

ZSD

Contact persons including contact details:

Screenshots / Logs / Requests:

https://s17145.creolineserver.com/goto/0e555390-c5cb-11ee-8857-f50d52f0dbce

Checklist:

  • Add Severity label
  • Add team label
  • Related/affected issues/stories/epics linked and explained in the bug issue
  • Creation of an automated test
  • Bugfix deployed on DEV
  • Bugfix tested on DEV
  • Bugfix deployed on TEST
  • Bugfix tested on TEST (possibly also by the connection project itself)
  • Successful fix reported to Team Operations (Teams channel)
  • Bugfix deployed on STAGE
  • Bugfix tested on STAGE if necessary
  • Bugfix deployed on PROD
  • Bugfix tested on PROD (possibly also by the connection project itself)
  • Final communication by Team Operations if necessary
  • Internal documentation was checked and updated if necessary
  • External documentation has been checked and updated if necessary
  • Updated changelog if necessary

Approach/Solution:

Release version of the artifact:

Edited by Christoph Metzger