Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught BadRequestError: final aggregateName firstRecipient is tried to be modified - PUT /rest/tutanota/mail/NDEHZii-0F-2/NM8Uoxy----9/ #5015

Closed
3 of 12 tasks
ganthern opened this issue Jan 19, 2023 · 1 comment
Labels
bug broken functionality, usability problems, unexpected errors desktop Desktop client related issues state:tested We tested it and are about to release it
Milestone

Comments

@ganthern
Copy link
Contributor

ganthern commented Jan 19, 2023

To reproduce:

  • use client with 3.106.5 and activated offline storage (stored credentials)
  • receive a mail from a different account (all indented lead to a different error)
    • calendar invitation (has only bcc fields)
      • do not open invitation before client update -> later leads to [2]
      • open invitation before client update -> later leads to [3]
      • sometimes when the mail is opened before and later an update is sent (make mail unread for example) -> [1]
    • normal email
      • not open before update -> leads to [2]
      • open before update -> leads to [3]
  • update the receiving client to 3.107.3
  • click on of the received emails
  • observe error

Errors:
[1]:

Client: linux
Type: FREE
Tutanota version: 3.107.3
Timestamp (UTC): Thu, 19 Jan 2023 12:16:56 GMT
User agent:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) tutanota-desktop-test/3.107.3 Chrome/108.0.5359.62 Electron/22.0.0 Safari/537.36
BadRequestError
Error message: 400: NM8xU6y----0 | PUT /rest/tutanota/mail/NM8x0B5--c-0/NM8xIuh----0
Stacktrace:
BadRequestError: 400: NM8xU6y----0 | PUT /rest/tutanota/mail/NM8x0B5--c-0/NM8xIuh----0
at cP (asset://app/common-min-9d36fe4c.js:1:7456)
at l.onload (asset://app/worker.js:12:105566)

[2]:

Client: linux
Type: FREE
Tutanota version: 3.107.3
Timestamp (UTC): Thu, 19 Jan 2023 12:21:12 GMT
User agent:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) tutanota-desktop-test/3.107.3 Chrome/108.0.5359.62 Electron/22.0.0 Safari/537.36
ProgrammingError
Error message: Value recipientCount with cardinality ONE can not be null
Stacktrace:
ProgrammingError: Value recipientCount with cardinality ONE can not be null
at zl (asset://app/worker.js:12:141701)
at jl.encryptAndMapToLiteral (asset://app/worker.js:12:140978)
at Oa.update (asset://app/worker.js:1:29475)

[3]:

Client: linux
Type: FREE
Tutanota version: 3.107.3
Timestamp (UTC): Thu, 19 Jan 2023 12:30:31 GMT
User agent:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) tutanota-desktop-test/3.107.3 Chrome/108.0.5359.62 Electron/22.0.0 Safari/537.36
TypeError
Error message: e is not iterable
Stacktrace:
TypeError: e is not iterable
at Ba (asset://app/worker.js:1:24714)
at Ma.load (asset://app/worker.js:1:17548)
at asset://app/common-dec9280d.js:1:12818
at Object.handleMessage (asset://app/common-dec9280d.js:1:16960)
at asset://app/common-dec9280d.js:1:16213
at _worker.onmessage (asset://app/common-dec9280d.js:1:15782)

the location where this is thrown is in expandId (the Id is not a string but also not an array, so the destructure fails):

export function expandId(id: Id | IdTuple): { listId: Id | null; elementId: Id } {
if (typeof id === "string") {
return {
listId: null,
elementId: id,
}
} else {
const [listId, elementId] = id
return {
listId,
elementId,
}
}
}

@ganthern ganthern added bug broken functionality, usability problems, unexpected errors desktop Desktop client related issues labels Jan 19, 2023
@ganthern
Copy link
Contributor Author

ganthern commented Jan 19, 2023

possibly related:

Client: linux
Type: FREE
Tutanota version: 3.107.3
Timestamp (UTC): Thu, 19 Jan 2023 12:21:12 GMT
User agent:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) tutanota-desktop-test/3.107.3 Chrome/108.0.5359.62 Electron/22.0.0 Safari/537.36
ProgrammingError
Error message: Value recipientCount with cardinality ONE can not be null
Stacktrace:
ProgrammingError: Value recipientCount with cardinality ONE can not be null
at zl (asset://app/worker.js:12:141701)
at jl.encryptAndMapToLiteral (asset://app/worker.js:12:140978)
at Oa.update (asset://app/worker.js:1:29475)

repro seems to be to receive a mail without primary recipient (bcc only) with the old client without opening it, updating the client and then opening the mail.

@ganthern ganthern added this to the 3.108.0 milestone Jan 19, 2023
@charlag charlag assigned charlag and unassigned charlag Jan 23, 2023
@charlag charlag added the state:tested We tested it and are about to release it label Jan 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug broken functionality, usability problems, unexpected errors desktop Desktop client related issues state:tested We tested it and are about to release it
Projects
None yet
Development

No branches or pull requests

2 participants