[
https://issues.apache.org/jira/browse/JAMES-1375?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13208791#comment-13208791
]
Oleg Zhurakousky commented on JAMES-1375:
-----------------------------------------
more stack trace on the server side:
jvm 1 | org.apache.james.imap.decode.DecodingException: Invalid character:
')'
jvm 1 | at
org.apache.james.imap.decode.ImapRequestLineReader.consumeWord(ImapRequestLineReader.java:330)
jvm 1 | at
org.apache.james.imap.decode.ImapRequestLineReader.consumeWord(ImapRequestLineReader.java:316)
jvm 1 | at
org.apache.james.imap.decode.ImapRequestLineReader.atom(ImapRequestLineReader.java:183)
jvm 1 | at
org.apache.james.imap.decode.parser.SearchCommandParser.keyword(SearchCommandParser.java:370)
jvm 1 | at
org.apache.james.imap.decode.parser.SearchCommandParser.searchKey(SearchCommandParser.java:97)
jvm 1 | at
org.apache.james.imap.decode.parser.SearchCommandParser.addUntilParen(SearchCommandParser.java:140)
jvm 1 | at
org.apache.james.imap.decode.parser.SearchCommandParser.paren(SearchCommandParser.java:131)
jvm 1 | at
org.apache.james.imap.decode.parser.SearchCommandParser.searchKey(SearchCommandParser.java:71)
jvm 1 | at
org.apache.james.imap.decode.parser.SearchCommandParser.not(SearchCommandParser.java:539)
jvm 1 | at
org.apache.james.imap.decode.parser.SearchCommandParser.n(SearchCommandParser.java:331)
jvm 1 | at
org.apache.james.imap.decode.parser.SearchCommandParser.searchKey(SearchCommandParser.java:103)
jvm 1 | at
org.apache.james.imap.decode.parser.SearchCommandParser.decode(SearchCommandParser.java:863)
jvm 1 | at
org.apache.james.imap.decode.parser.SearchCommandParser.decode(SearchCommandParser.java:997)
jvm 1 | at
org.apache.james.imap.decode.parser.AbstractUidCommandParser.decode(AbstractUidCommandParser.java:36)
jvm 1 | at
org.apache.james.imap.decode.base.AbstractImapCommandParser.parse(AbstractImapCommandParser.java:86)
jvm 1 | at
org.apache.james.imap.decode.main.DefaultImapDecoder.decodeCommandNamed(DefaultImapDecoder.java:130)
> IMap server fails to search for mail using SearchTerms which contain USER
> flags
> -------------------------------------------------------------------------------
>
> Key: JAMES-1375
> URL: https://issues.apache.org/jira/browse/JAMES-1375
> Project: JAMES Server
> Issue Type: Bug
> Components: IMAPServer
> Affects Versions: 3.0-beta3
> Reporter: Oleg Zhurakousky
> Priority: Critical
>
> The code below will fail
> {code}
> public void testWithSearchTerm() throws Exception {
> Properties props = System.getProperties();
> props.setProperty("mail.store.protocol", "imap");
> props.setProperty("mail.debug", "true");
> Session session = Session.getDefaultInstance(props);
> URLName urlName = new URLName(
>
> "imap://oleg%40oleg-2.local:[email protected]/INBOX");
> Store store = session.getStore(urlName);
> if (!store.isConnected()) {
> store.connect();
> Folder folder = store.getFolder(urlName);
> folder.open(2);
> NotTerm notJunk = new NotTerm(new FlagTerm(new Flags("foo"),
> true));
> folder.search(notJunk);
> }
> }
> {code}
> with
> {code}
> Caused by: com.sun.mail.iap.BadCommandException: A4 BAD SEARCH failed.
> Illegal arguments.
> at com.sun.mail.iap.Protocol.handleResult(Protocol.java:346)
> at
> com.sun.mail.imap.protocol.IMAPProtocol.issueSearch(IMAPProtocol.java:1693)
> at
> com.sun.mail.imap.protocol.IMAPProtocol.search(IMAPProtocol.java:1599)
> at
> com.sun.mail.imap.protocol.IMAPProtocol.search(IMAPProtocol.java:1586)
> at com.sun.mail.imap.IMAPFolder.search(IMAPFolder.java:1649)
> {code}
> However setting the user flag works fine and it can be seen in the incoming
> message
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]