Uploaded image for project: 'James Server'
  1. James Server
  2. JAMES-3624

RFC 8887 (JMAP over WebSocket) Request needs property 'id' (is 'requestId')

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.7.0
    • None
    • None

    Description

      The WebSocket message 'Request' has a property called 'id' according to the spec. (Responses will mirror that property in a property called 'requestId'.) James however calls this 'requestId'

       

      The unit test here:

      https://github.com/apache/james-project/blob/master/server/protocols/jmap-rfc-8621-integration-tests/jmap-rfc-8621-integration-tests-common/src/main/scala/org/apache/james/jmap/rfc8621/contract/WebSocketContract.scala#L77

       

      needs to read:

      "id": "req-36",

       

      (I messed this up in my JMAP library as well. The fix is here: https://github.com/iNPUTmice/jmap/commit/58fa163b8d55e3a6e5be4cf3bbfaca4700963b93 )

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              inputmice Daniel Gultsch
              Votes:
              0 Vote for this issue
              Watchers:
              3 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 - 40m
                  40m