Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-17193

Map IgniteException to problem json

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.0.0-beta1
    • None

    Description

      According to https://www.rfc-editor.org/rfc/rfc7807.html HTTP API has to return application/problem+json if an error happens.

      https://cwiki.apache.org/confluence/display/IGNITE/IEP-84%3A+Error+handling describes how Ignite 3 throws exceptions.

      The aim of this ticket is to map IgniteException to application/problem+json. Note, that there is no implementation of IEP-84. So, leave TODOs with Jira tickets where it is needed.

      Mapping strategy:

      “title”: a short, human-readable summary of the problem type
      “status”: HTTP status code
      “code”: error code
      “type”: URI to the error documentation (optional)
      “detail”: a human-readable explanation of the problem (optional)
      “invalid-params”: list of parameters that did not pass the validation (optional)
      “node”: Ignite 3 node name (optional)
      “trace-id”: unique identifier that will help to trace the error in the log (optional).

      Attachments

        Issue Links

          Activity

            People

              aleksandr.pakhomov Aleksandr
              aleksandr.pakhomov Aleksandr
              Slava Koptilin Slava Koptilin
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 50m
                  50m