tmail-flutter icon indicating copy to clipboard operation
tmail-flutter copied to clipboard

[Web] Can not remove email in Bcc filed of Edit identity

Open hoangdat opened this issue 2 years ago • 4 comments

Reproduce

https://user-images.githubusercontent.com/6462404/178409751-4e3e5e4c-18f7-4339-88fb-6d45e0eaae5e.mov

Expected

  • [ ] Can edit any fields when edit Identity

hoangdat avatar Jul 12 '22 04:07 hoangdat

I got the list of identity with the request:

{
    "using": [
        "urn:ietf:params:jmap:core",
        "urn:ietf:params:jmap:submission"
    ],
    "methodCalls": [
        [
            "Identity/get",
            {
                "accountId": "{{accountId}}",
                "properties": ["email", "bcc"]
            },
            "00"
        ]
    ]
}
{
    "sessionState": "2c9f1b12-b35a-43e6-9af2-0106fb53a943",
    "methodResponses": [
        [
            "Identity/get",
            {
                "accountId": "{{accountId}}",
                "state": "2c9f1b12-b35a-43e6-9af2-0106fb53a943",
                "list": [
                    {
                        "email": "[email protected]",
                        "id": "eedc357c-be23-3e15-b004-96f7d78ea435",
                        "bcc": [
                            {
                                "email": "[email protected]"
                            }
                        ]
                    },
                    {
                        "email": "[email protected]",
                        "id": "a1cf70c1-ff57-3435-9b61-f6c97165bae1"
                    },
                    {
                        "email": "[email protected]",
                        "id": "7cd6799c-857d-4935-9992-f6be34434a06",
                        "bcc": []
                    },
                    {
                        "email": "[email protected]",
                        "id": "af81a059-9b00-4fed-b68d-a27fb032dc13",
                        "bcc": [
                            {
                                "email": "[email protected]"
                            }
                        ]
                    }
                ]
            },
            "00"
        ]
    ]
}

Then I update the bcc of one of my identity Request:

{
    "using": [
        "urn:ietf:params:jmap:core",
        "urn:ietf:params:jmap:submission"
    ],
    "methodCalls": [
        [
            "Identity/set",
            {
                "accountId": "{{accountId}}",
                "update": {
                    "af81a059-9b00-4fed-b68d-a27fb032dc13": {
                        "bcc": [
                            {
                                "name": null,
                                "email": "[email protected]"
                            }
                        ]
                    }
                }
            },
            "00"
        ]
    ]
}

Response:

{
    "sessionState": "2c9f1b12-b35a-43e6-9af2-0106fb53a943",
    "methodResponses": [
        [
            "Identity/set",
            {
                "accountId": "{{accountId}}",
                "newState": "2c9f1b12-b35a-43e6-9af2-0106fb53a943",
                "notUpdated": {
                    "af81a059-9b00-4fed-b68d-a27fb032dc13": {
                        "type": "notFound",
                        "description": "IdentityId(af81a059-9b00-4fed-b68d-a27fb032dc13) could not be found"
                    }
                }
            },
            "00"
        ]
    ]
}

it is so weird. Do you have any idea for it? @Arsnael. Env: Production

hoangdat avatar Jul 14 '22 09:07 hoangdat

The same problem in Pre-prod: https://gateway.upn.integration-open-paas.org/jmap

hoangdat avatar Jul 14 '22 10:07 hoangdat

Hi @Arsnael when we have the back-end fixed will release? I saw a PR is merged :) Thanks

hoangdat avatar Aug 17 '22 10:08 hoangdat

Pretty sure it's been merged back to TMail...

Been a while we didn't redeploy things though. Remind me tomorrow and I could check for staging env

However on LNG you gonna have to wait for the next release

Arsnael avatar Aug 17 '22 10:08 Arsnael

verified on IOS Andoid Web browser V0.3.17

haftus98 avatar Oct 23 '22 14:10 haftus98