You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@james.apache.org by GitBox <gi...@apache.org> on 2021/11/23 05:22:28 UTC

[GitHub] [james-project] quantranhong1999 commented on pull request #756: JAMES-3534 Identity/set destroy

quantranhong1999 commented on pull request #756:
URL: https://github.com/apache/james-project/pull/756#issuecomment-976176792


   Look like I found a bug at Identity/get.
   When getting a random id, that id should be responded in notFound but did not.
   Test:
   ```
      val id = UUID.randomUUID().toString
       val request =
         s"""{
            |  "using": ["urn:ietf:params:jmap:core", "urn:ietf:params:jmap:submission"],
            |  "methodCalls": [[
            |    "Identity/get",
            |    {
            |      "accountId": "29883977c13473ae7cb7678ef767cbfbaffc8a44a6e463d971d23a65c1dc4af6",
            |      "ids": ["$id"]
            |    },
            |    "c1"]]
            |}""".stripMargin
   
       val response =  `given`
         .header(ACCEPT.toString, ACCEPT_RFC8621_VERSION_HEADER)
         .body(request)
       .when
         .post.prettyPeek()
       .`then`
         .statusCode(SC_OK)
         .contentType(JSON)
         .extract
         .body
         .asString
   ```
   Response:
   ```
   {
       "sessionState": "2c9f1b12-b35a-43e6-9af2-0106fb53a943",
       "methodResponses": [
           [
               "error",
               {
                   "type": "serverFail",
                   "description": "JsError.get"
               },
               "c1"
           ]
       ]
   }
   ```
   I will dig into this tomorrow afternoon.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@james.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@james.apache.org
For additional commands, e-mail: notifications-help@james.apache.org