6.0.0-beta1
8/11/25

[#11132] Invalid UID Fetch attribute
Summary Invalid UID Fetch attribute
Queue IMP
Queue Version Git master
Type Bug
State Resolved
Priority 1. Low
Owners slusarz (at) horde (dot) org
Requester jan (at) horde (dot) org
Created 04/05/2012 (4876 days ago)
Due
Updated 09/23/2012 (4705 days ago)
Assigned 04/05/2012 (4876 days ago)
Resolved 04/06/2012 (4875 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
09/23/2012 09:51:47 PM horde (at) gosign (dot) de Comment #6 Reply to this comment
I am still getting the same error (with Cyrus Imapd) and after some 
research figured out that in line 3167 the empty parameter is 
hard-coded:

        $this->_sendLine(array(
             'UID FETCH',
             $ids->all ? '1:*' : strval($ids),
             array(),
             array(
                 'VANISHED',
                 'CHANGEDSINCE',
                 array('t' => Horde_Imap_Client::DATA_NUMBER, 'v' => 
intval($modseq))
             )

As per the discussion here: 
http://www.dovecot.org/list/dovecot/2012-April/065086.html this is 
incorrect and should be changed to include the UID parameter:


        $this->_sendLine(array(
             'UID FETCH',
             $ids->all ? '1:*' : strval($ids),
             array('UID'),
             array(
                 'VANISHED',
                 'CHANGEDSINCE',
                 array('t' => Horde_Imap_Client::DATA_NUMBER, 'v' => 
intval($modseq))
             )


Alex
04/06/2012 08:37:43 PM Michael Slusarz Comment #5
State ⇒ Resolved
Reply to this comment
Verified fixed.
04/05/2012 06:42:33 PM Git Commit Comment #4 Reply to this comment
Changes have been made in Git (develop):

commit 497821da5f1cd04690c3c02814a3389070170ad1
Author: Michael M Slusarz <slusarz@horde.org>
Date:   Thu Apr 5 12:38:24 2012 -0600

     [mms] Fix CHANGEDSINCE search if no FETCH attributes were 
specified (Bug #11132).

  .../Imap_Client/lib/Horde/Imap/Client/Socket.php   |   14 +++++++++++---
  framework/Imap_Client/package.xml                  |    2 ++
  2 files changed, 13 insertions(+), 3 deletions(-)

http://git.horde.org/horde-git/-/commit/497821da5f1cd04690c3c02814a3389070170ad1
04/05/2012 06:39:59 PM Michael Slusarz Comment #3
State ⇒ Feedback
Reply to this comment
This should fix.  (FWIW, Dovecot, as of 2.1.3, accepts an empty FETCH 
attribute parameter).
04/05/2012 06:39:06 PM Git Commit Comment #2 Reply to this comment
Changes have been made in Git (master):

commit 497821da5f1cd04690c3c02814a3389070170ad1
Author: Michael M Slusarz <slusarz@horde.org>
Date:   Thu Apr 5 12:38:24 2012 -0600

     [mms] Fix CHANGEDSINCE search if no FETCH attributes were 
specified (Bug #11132).

  .../Imap_Client/lib/Horde/Imap/Client/Socket.php   |   14 +++++++++++---
  framework/Imap_Client/package.xml                  |    2 ++
  2 files changed, 13 insertions(+), 3 deletions(-)

http://git.horde.org/horde-git/-/commit/497821da5f1cd04690c3c02814a3389070170ad1
04/05/2012 02:17:36 PM Jan Schneider Comment #1
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ Invalid UID Fetch attribute
Queue ⇒ IMP
Assigned to Michael Slusarz
Milestone ⇒
Patch ⇒ No
State ⇒ Assigned
Reply to this comment
I see this regularly in the logs, but without any noticeable effect.

Example log:

S: * OK [CAPABILITY IMAP4rev1 LITERAL+ ID ENABLE  XIMAPPROXY] neo 
Cyrus IMAP v2.4.9-Debian
-2.4.9-1 server ready
C: [LOGIN Command - username: jan]
S: * OK [XPROXYREUSE] IMAP connection reused by imapproxy
S: 1 OK User logged in
C: 2 EXAMINE INBOX.horde.dev (QRESYNC (991562227 186 
47888,47890:47892,47903,47907:47911,4
7913:47916,47919,47922,47973:47974,48018,48025,48033,48036:48037,48045:48047,48071,48074,4
8112:48113,48164,48256,48261,48268,48274:48275,48285:48286,48316,48343,48403,48415,48417,4
8426,48428:48429,48431,48435:48437,48440,48459:48460,48462,48583,48592:48594,48599,48602,4
8612:48613,48642,48646,48648,48659,48666,48668:48669,48671,48674,48676,48678:48679,48681:4
8682,48685,48693:48695,48697,48700,48734,48745,48763,48765,48778:48779,48794,48808:48814,4
8816:48824,48826:48828,48832,48842:48843,48847,48852:48853,48855,48864,48867,48869,48873,4
8876,48891,48900,48961,48976,48986:48987,48990,49006,49011,49019,49021,49024))
S: * 422 EXISTS
S: * 0 RECENT
S: * FLAGS (\Answered \Flagged \Draft \Deleted \Seen NonJunk Junk 
NotJunk $NotJunk JunkRec
orded $Junk $forwarded)
S: * OK [PERMANENTFLAGS ()] Ok
S: * OK [UIDVALIDITY 991562227] Ok
S: * OK [UIDNEXT 49025] Ok
S: * OK [HIGHESTMODSEQ 187] Ok
S: * OK [URLMECH INTERNAL] Ok
S: * 422 FETCH (FLAGS (\Seen) UID 49024 MODSEQ (187))
S: 2 OK [READ-ONLY] Completed
CACHE: Stored messages (mailbox: INBOX.horde.dev; UIDs: 49024)
CACHE: Retrieved messages (mailbox: INBOX.horde.dev; UIDs: 49024)
C: 3 UID FETCH 49024 (BODY.PEEK[TEXT])
S: * 422 FETCH (UID 49024 BODY[TEXT] {2273}
S: [LITERAL DATA - 2273 bytes]
S: )
S: 3 OK Completed (0.000 sec)
Slow IMAP Command: 1,108 seconds
C: 4 UID FETCH 49024 (BODY.PEEK[HEADER])
S: * 422 FETCH (UID 49024 BODY[HEADER] {4810}
S: [LITERAL DATA - 4810 bytes]
S: )
S: 4 OK Completed (0.000 sec)
Slow IMAP Command: 22,626 seconds
C: 5 SELECT INBOX.horde.dev
S: * OK [CLOSED] Ok
S: * 422 EXISTS
S: * 0 RECENT
S: * FLAGS (\Answered \Flagged \Draft \Deleted \Seen NonJunk Junk 
NotJunk $NotJunk JunkRec
orded $Junk $forwarded)
S: * OK [PERMANENTFLAGS (\Answered \Flagged \Draft \Deleted \Seen 
NonJunk Junk NotJunk $NotJunk JunkRecorded $Junk $forwarded \*)] Ok
S: * OK [UIDVALIDITY 991562227] Ok
S: * OK [UIDNEXT 49025] Ok
S: * OK [HIGHESTMODSEQ 187] Ok
S: * OK [URLMECH INTERNAL] Ok
S: 5 OK [READ-WRITE] Completed
C: 6 UID STORE 49024 (UNCHANGEDSINCE 187) +FLAGS $junk
S: * 422 FETCH (FLAGS (\Seen $Junk) UID 49024 MODSEQ (188))
S: 6 OK Completed
CACHE: Stored messages (mailbox: INBOX.horde.dev; UIDs: 49024)
C: 7 UID STORE 49024 (UNCHANGEDSINCE 188) -FLAGS $notjunk
S: 7 OK Completed
C: 8 UID COPY 49024 INBOX.Trash
Slow IMAP Command: 1,231 seconds
S: 8 OK [COPYUID 984270706 49024 1191472] Completed
IGNORING cached FETCH data (mailbox: INBOX.Trash)
IGNORING moving cached FETCH data (INBOX.horde.dev => INBOX.Trash)
C: 9 UID STORE 49024 (UNCHANGEDSINCE 188) +FLAGS \deleted
S: * 422 FETCH (FLAGS (\Deleted \Seen $Junk) UID 49024 MODSEQ (189))
S: 9 OK Completed
CACHE: Stored messages (mailbox: INBOX.horde.dev; UIDs: 49024)
C: 10 UID EXPUNGE 49024
S: * VANISHED 49024
S: 10 OK [HIGHESTMODSEQ 190] Completed
CACHE: Deleted messages (mailbox: INBOX.horde.dev; UIDs: 49024)
Expired search results from cache (mailbox: INBOX.horde.dev)
C: 11 UID THREAD REFERENCES US-ASCII ALL
S: * THREAD ((21743 21765)(22378))(22388 22387 (22386 (22385)(22383 
22381 22380 22379))(22384 22382))(22374 (22373)(22372 22370 22368 
(22365 22363)(22362 (22361)(22360))))(27294)(28452 28464)(29453 
29464)((29576)(29597)(29648 29651))(33993)(35036 35037 35059 35061 
36752 36754 36755)(35506 35507 35510 35511 35512 35513 35520 35521 
(35528 35529 35531 35532 35533 35534 35536 35535 35543)(35537 
35539))(35574 35806 35812 35822 35829 35848)(37159 37163 37407 
38423)(37721)(38020)(38159 38165 (38166 38167 38173 
38176)(38172))((39475)(39476 (39504 39508)(39522 39557)))(39505 39507 
39523)(39877 39878 39879)(40218)(40758)(40801)(41027)(41064 41068 
41069)(41173)(41288)(41587)(41774)(42359 42589 (42591 42590)(42592 
42631 42634 42793 42802))(42481 42495 42598 42607 42613 42615 42616 
42618 42619)(43020)(43747)(44245 44246 44260 44262)(44523 44524 (44525 
44526 44584 (44588 44589 44609)(44591 44592 44745))(44549 44557 
44560)(44559))(44543 (44544 44546)(44558 44561))(44734)(45384 45387 
(45390 45416)(45402))(45966 45972 45980 45985)(46577 46578 (46581 
46582)(46584 46605 46639))((46587)(46588 46589 46591 46594))(46623 
46624 46626)(46644)((46655)(46659))(46657 46718 46720)(46660)(46692 
(46693)(46711))(46700)(46701)((46790 (46791)(46792)(46793 46794 
46795))(46740 46741 46742 (46744)(46745 46747 46762 46773 46774 
46815)))(46719)(46738)((46841)(46855))(46854 46860 (46861)(46862 46863 
(46865)(46864)(46866)))((46938 
46945)(46946))(47103)(47112)(47121)(47245 47250 47255 47259 47306 
(47307 47310)(47311 47314 47319 47320 47321 47322 47323 47324 47325 
47326 47327 47328 47330 47331 47333))(47295 47296)((47282 47283)(47288 
(47294)(47291)))(47284)(47301)(47394)(47413)(47453 47468)(47467 
(47471)(47474)(47475 (47481)(47480 47562)))(47473)(47610)(47612)(47684 
47690 47691)(47687)(47698)(47758 47764 47765)(47805)(47881)(47897 
47898 (47899 47901 (47902 47923 47925)(47904 47905)(47924)(47929 
47936)(47930))(47900))(47886 (47887 (47889)(47906 47912 47915 
47916))(47888 (47890 (47891 47908)(47892)(47911))(47909 47919 
47922))(47903 47907 47910 47913 47914))(47973)(47974)((48018)(48033 
48036 48037 48045 (48046)(48047)))(48025)(48071)(48074)(48112 
48113)(48164)(48256 (48261 48275)(48268)(48274))(48285 48343 48666 
48668 48669 48674 48681)(48286 48316 48415 (48426 48460 48462 48612 
48613)(48435 48436 (48437)(48459)))(48403 48417 48428 48429 
48431)(48440)(48583 (48592 (48594)(48593))(48599 48602 (48642 48646 
48648 48659)(48671 (48676)(48685 48694 (48695)(48697)))))(48678 
(48679)(48682)(48693 48826))(48700 48734 48745)((48763 
(48778)(48794)(48843))(48765)(48779))(48808 (48809 48810 48811)(48812 
48817)(48813 48818 48842)(48814)(48816 48819 (48820)(48821 (48822 
(48823)(48824))(48827 48828 48832)))(48847 48852 48855)(48853))(48864 
48900)(48867)(48869)(48873)(48876)(48891)(48961 48987 49006 
49011)(48976 48986)(48990)(49019)(49021)
S: 11 OK Completed (421 msgs in 0.030 secs)
Saved thread results to cache (mailbox: INBOX.horde.dev; id: 
dc861924f5d0f35c6215ee03013aa8cc)
C: 12 UID FETCH 
47888,47890:47892,47903,47907:47911,47913:47914,47916,47919,47922,47973:47974,48018,48025,48033,48036:48037,48045:48047,48071,48074,48112:48113,48164,48256,48261,48268,48274:48275,48285:48286,48316,48343,48403,48415,48417,48426,48428:48429,48431,48435:48437,48440,48459:48460,48462,48583,48592:48594,48599,48602,48612:48613,48642,48646,48648,48659,48666,48668:48669,48671,48674,48676,48678:48679,48681:48682,48685,48693:48695,48697,48700,48734,48745,48763,48765,48778:48779,48794,48808:48814,48816:48824,48826:48828,48832,48842:48843,48847,48852:48853,48855,48864,48867,48869,48873,48876,48891,48900,48961,48976,48986:48987,48990,49006,49011,49019,49021 () (CHANGEDSINCE 
186)


S: 12 BAD Invalid UID Fetch attribute
CACHE: Retrieved messages (mailbox: INBOX.horde.dev; UIDs: 47915)
C: 13 SEARCH RETURN (COUNT) UNSEEN
S: * ESEARCH (TAG "13") COUNT 0
S: 13 OK Completed (0 msgs in 0.000 secs)
Saved search results to cache (mailbox: INBOX.horde.dev; id: 
9aa2c4b715a8dfd5fe17303e4a0d4d07)
C: 14 STATUS INBOX (RECENT)
S: * STATUS INBOX (RECENT 0)
S: 14 OK Completed
C: 15 STATUS INBOX.horde.apps (RECENT)
S: * STATUS INBOX.horde.apps (RECENT 0)
S: 15 OK Completed
C: 16 STATUS INBOX.horde.bugs (RECENT)
S: * STATUS INBOX.horde.bugs (RECENT 0)
S: 16 OK Completed
C: 17 STATUS INBOX.horde.cvs (RECENT)
S: * STATUS INBOX.horde.cvs (RECENT 0)
S: 17 OK Completed
C: 18 STATUS INBOX.horde.imp (RECENT)
S: * STATUS INBOX.horde.imp (RECENT 0)
S: 18 OK Completed
C: 19 STATUS INBOX.Privat (RECENT)
S: * STATUS INBOX.Privat (RECENT 0)
S: 19 OK Completed
C: 20 LOGOUT

Saved Queries