Bug 313159 - Akonadi/IMAP does not conform to RFC 5464 (IMAP METADATA)
Summary: Akonadi/IMAP does not conform to RFC 5464 (IMAP METADATA)
Status: RESOLVED FIXED
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: IMAP resource (show other bugs)
Version: 1.9.0
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: Kevin Ottens
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-13 00:59 UTC by Dennis Schridde
Modified: 2013-11-06 20:39 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In: 4.11.4


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dennis Schridde 2013-01-13 00:59:17 UTC
The IMAP server is dovecot-2.1.12 with my dovecot-metadata-9 plugin. I wrote the plugin to check the input rather strictly, which is why it reports a problem with Akonadi/IMAP's conformance to the IMAP METADATA RFC 5464.

From the KIMAP_LOGFILE:
C: A001351 GETMETADATA "INBOX/live" "*"
S: A001351 BAD Error in IMAP command GETMETADATA: Wildcards in entry name '*' not allowed. ( RFC 5464 Section 3.2 )

Section 3.2 explicitly forbids this:
Entry names MUST NOT contain asterisk ("*") or percent ("%") characters

Now you might argue that this only applies to the entry names the server stores, but not to requests by the client. However, Section 4.2 neither allows nor describes the use of the wildcard characters.

You probably want to use the DEPTH argument to GETMETADATA (Section 4.2.2) instead of a wildcard character.

Reproducible: Always
Comment 1 Dennis Schridde 2013-01-13 01:02:19 UTC
Please note that there is another problem within Akonadi/IMAP where the METADATA IMAP extension is not used correctly: bug #301154
Comment 2 Christian Mollekopf 2013-11-06 14:32:27 UTC
Git commit 0291bfb0fd272dfab0417cda0b406aa3c1af5d5a by Christian Mollekopf.
Committed on 28/10/2013 at 18:01.
Pushed by cmollekopf into branch 'KDE/4.11'.

Get METADATA annotations.

METADATA doesn't allow a wildcard as entry specifier.

M  +2    -1    resources/imap/retrievecollectionmetadatatask.cpp

http://commits.kde.org/kdepim-runtime/0291bfb0fd272dfab0417cda0b406aa3c1af5d5a
Comment 3 Dennis Schridde 2013-11-06 20:39:34 UTC
Thanks! Great to have this finally fixed.