[Akonadi] [Bug 423672] org.kde.pim.imapresource: Failed to create folder on server: "Create failed, server replied: ... NO Mailbox already exists ... [ ALREADYEXISTS ]"
https://bugs.kde.org/show_bug.cgi?id=423672 Christophe Giboudeaux changed: What|Removed |Added Latest Commit|https://invent.kde.org/pim/ |https://invent.kde.org/pim/ |kimap2/commit/ce0e9873d3a89 |kimap/commit/ee2900e3539483 |7fee7fd9f8f7649ef4abd3c4627 |b6f3d5eadfcf8cfc9c6ed42abe -- You are receiving this mail because: You are watching all bug changes.
[Akonadi] [Bug 423672] org.kde.pim.imapresource: Failed to create folder on server: "Create failed, server replied: ... NO Mailbox already exists ... [ ALREADYEXISTS ]"
https://bugs.kde.org/show_bug.cgi?id=423672 Christian Mollekopf changed: What|Removed |Added Latest Commit|https://invent.kde.org/pim/ |https://invent.kde.org/pim/ |kimap/commit/ee2900e3539483 |kimap2/commit/ce0e9873d3a89 |b6f3d5eadfcf8cfc9c6ed42abe |7fee7fd9f8f7649ef4abd3c4627 --- Comment #6 from Christian Mollekopf --- Git commit ce0e9873d3a897fee7fd9f8f7649ef4abd3c4627 by Christian Mollekopf, on behalf of Dennis Schridde. Committed on 06/08/2020 at 12:59. Pushed by cmollekopf into branch 'master'. Idempotent CREATE and DELETE If CREATE fails with an ALREADYEXISTS response code, that is not an error since the intended result (the object existing at the target location) has been achieved. Likewise, if DELETE fails with an NONEXISTENT response code, that is not an error since the intended result (the object being gone from the target location) has been achieved. Please note that for RENAME response code ALREADYEXISTS *is* an error since the content of the source folder was not moved as intended. cf. https://tools.ietf.org/html/rfc5530#section-3 M +27 -0src/createjob.cpp M +2-1src/createjob.h M +27 -0src/deletejob.cpp M +2-1src/deletejob.h https://invent.kde.org/pim/kimap2/commit/ce0e9873d3a897fee7fd9f8f7649ef4abd3c4627 -- You are receiving this mail because: You are watching all bug changes.
[Akonadi] [Bug 423672] org.kde.pim.imapresource: Failed to create folder on server: "Create failed, server replied: ... NO Mailbox already exists ... [ ALREADYEXISTS ]"
https://bugs.kde.org/show_bug.cgi?id=423672 Daniel Vrátil changed: What|Removed |Added Status|REPORTED|RESOLVED Latest Commit||https://invent.kde.org/pim/ ||kimap/commit/ee2900e3539483 ||b6f3d5eadfcf8cfc9c6ed42abe Resolution|--- |FIXED --- Comment #5 from Daniel Vrátil --- Git commit ee2900e3539483b6f3d5eadfcf8cfc9c6ed42abe by Daniel Vrátil, on behalf of Dennis Schridde. Committed on 07/07/2020 at 17:49. Pushed by dvratil into branch 'master'. Idempotent CREATE and DELETE If CREATE fails with an ALREADYEXISTS response code, that is not an error since the intended result (the object existing at the target location) has been achieved. Likewise, if DELETE fails with an NONEXISTENT response code, that is not an error since the intended result (the object being gone from the target location) has been achieved. Please note that for RENAME response code ALREADYEXISTS *is* an error since the content of the source folder was not moved as intended. cf. https://tools.ietf.org/html/rfc5530#section-3 M +27 -0src/createjob.cpp M +1-0src/createjob.h M +27 -0src/deletejob.cpp M +1-0src/deletejob.h https://invent.kde.org/pim/kimap/commit/ee2900e3539483b6f3d5eadfcf8cfc9c6ed42abe -- You are receiving this mail because: You are watching all bug changes.
[Akonadi] [Bug 423672] org.kde.pim.imapresource: Failed to create folder on server: "Create failed, server replied: ... NO Mailbox already exists ... [ ALREADYEXISTS ]"
https://bugs.kde.org/show_bug.cgi?id=423672 --- Comment #4 from Dennis Schridde --- (In reply to Christophe Giboudeaux from comment #3) > Please create a merge request: https://invent.kde.org/pim/kimap https://invent.kde.org/pim/kimap/-/merge_requests/3 -- You are receiving this mail because: You are watching all bug changes.
[Akonadi] [Bug 423672] org.kde.pim.imapresource: Failed to create folder on server: "Create failed, server replied: ... NO Mailbox already exists ... [ ALREADYEXISTS ]"
https://bugs.kde.org/show_bug.cgi?id=423672 --- Comment #3 from Christophe Giboudeaux --- Please create a merge request: https://invent.kde.org/pim/kimap -- You are receiving this mail because: You are watching all bug changes.
[Akonadi] [Bug 423672] org.kde.pim.imapresource: Failed to create folder on server: "Create failed, server replied: ... NO Mailbox already exists ... [ ALREADYEXISTS ]"
https://bugs.kde.org/show_bug.cgi?id=423672 --- Comment #2 from Dennis Schridde --- Created attachment 129920 --> https://bugs.kde.org/attachment.cgi?id=129920=edit kimap-20.04.2-create-alreadyexists-is-not-an-error.patch Attached patch fixes the issue in in KIMAP 20.04.2 by making CREATE and DELETE idempotent. If CREATE fails with an ALREADYEXISTS response code, that is not an error since the intended result (the object existing at the target location) has been achieved. Likewise, if DELETE fails with an NONEXISTENT response code, that is not an error since the intended result (the object being gone from the target location) has been achieved. Please note that for RENAME response code ALREADYEXISTS *is* an error since the content of the source folder was not moved as intended. cf. https://tools.ietf.org/html/rfc5530#section-3 -- You are receiving this mail because: You are watching all bug changes.
[Akonadi] [Bug 423672] org.kde.pim.imapresource: Failed to create folder on server: "Create failed, server replied: ... NO Mailbox already exists ... [ ALREADYEXISTS ]"
https://bugs.kde.org/show_bug.cgi?id=423672 --- Comment #1 from Dennis Schridde --- P.S. Expected behaviour on code-level: When the error is ALREADYEXISTS, Akonadi should consider the creation of the mailbox successful and continue the sync, i.e. mailbox creation should be idempotent. -- You are receiving this mail because: You are watching all bug changes.