Summary | Imap_Client fails with literal data on setMetadata command |
Queue | Horde Framework Packages |
Queue Version | Git master |
Type | Bug |
State | Resolved |
Priority | 1. Low |
Owners | slusarz (at) horde (dot) org |
Requester | wrobel (at) horde (dot) org |
Created | 02/05/2011 (5261 days ago) |
Due | |
Updated | 02/09/2011 (5257 days ago) |
Assigned | 02/08/2011 (5258 days ago) |
Resolved | 02/09/2011 (5257 days ago) |
Github Issue Link | |
Github Pull Request | |
Milestone | |
Patch | No |
Bug #9565: Need to send CRLF after literalplus requesthttp://git.horde.org/horde-git/-/commit/67ab4d8fe94d3387d9d7f708a6735ebecfedcbaa
DEBUG: C: Ä)
DEBUG: S: A0002 OK Completed
DEBUG: C: Ä
DEBUG: C: )
DEBUG: S: A0002 OK Completed
data was being stored internally in a stream. However, when the
literal data was stored internally in a string, we were tacking on a
CRLF after the literal data. This was terminating the command early.
This should be fixed (for real this time).
Bug #9565: Never send CRLF after literalhttp://git.horde.org/horde-git/-/commit/0ee34548ff77cfabdb68bdb5c88832072e97bb05
unhappy though:
(1297234921.0173) C: 2 SETANNOTATION INBOX "/comment" ("value.shared" {2+}
(1297234921.0177) C: Ä
(1297234921.0180) C: )
(1297234921.3045) S: 2 BAD Missing close paren in annotation
attribute-values list
IMAP driver and I just copied it. The server apparently did not care
about the misplaced parenthesis.
(1297208022.0143) C: 2 SETANNOTATION
(1297208022.1472) S: 2 BAD Missing required argument to Setannotation
now. Testing is easy on my side as this just requires a short command
line call. If you need more info just tell me. Thanks for
investigating this!
It also looked like the 'SETMETADATA' method was also broken - this
should be fixed also.
State ⇒ Feedback
Taken from Gunnar Wrobel
DEBUG: C: A0002 SETANNOTATION INBOX "/comment" ("value.shared" {2+}
DEBUG: C: Ä)
DEBUG: S: A0002 OK Completed
DEBUG: C: A0002 SETANNOTATION INBOX "/comment" ("value.shared" {2+}
DEBUG: C: Ä
DEBUG: C: )
DEBUG: S: A0002 OK Completed
The ')' is part of the IMAP command, not the literal, so it needs to
appear on a new line.
This has been fixed (I think; don't have an easy way to test at the moment):
http://lists.horde.org/archives/commits/2011-February/006677.html
It also looked like the 'SETMETADATA' method was also broken - this
should be fixed also.
Assigned to Michael Slusarz
Milestone ⇒
State ⇒ Unconfirmed
Patch ⇒ No
Queue ⇒ Horde Framework Packages
Summary ⇒ Imap_Client fails with literal data on setMetadata command
Type ⇒ Bug
Priority ⇒ 1. Low
value to "Ä" the generated IMAP output is incorrect:
C: 2 SETANNOTATION INBOX ("/comment" ("value.shared" {2+}
C: Ä
C: ))
S: 2 BAD Missing close paren in annotation attribute-values list
Working output would be:
DEBUG: C: A0002 SETANNOTATION INBOX "/comment" ("value.shared" {2+}
DEBUG: C: Ä)
DEBUG: S: A0002 OK Completed
I currently lacked the time to further investigate this but I can do
so at a later time.Unless of course it is something totally trivial
for Micheal :)