You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by "Stefano Bagnara (JIRA)" <se...@james.apache.org> on 2007/09/03 01:47:19 UTC

[jira] Created: (JAMES-811) IMAP Test failing if ran on non-US locale

IMAP Test failing if ran on non-US locale
-----------------------------------------

                 Key: JAMES-811
                 URL: https://issues.apache.org/jira/browse/JAMES-811
             Project: James
          Issue Type: Bug
          Components: IMAPServer
    Affects Versions: Next Major, Trunk
            Reporter: Stefano Bagnara
             Fix For: Next Major, Trunk


The problematic test is testAppend() in org.apache.james.test.functional.imap.AbstractAuthenticatedStateTestSuite

And here is the error:

MailboxManager has been initialized
[INFO] TorqueMailboxManagerFactory - MailboxManager has been initialized
Got <tag>: a001
Got <command>: LOGIN
Created command class org.apache.james.imapserver.codec.decode.imap4rev1.LoginCommandParser
Got <tag>: a1
Got <command>: CREATE
Created command class org.apache.james.imapserver.codec.decode.imap4rev1.CreateCommandParser
[INFO] TorqueMailboxManagerFactory - createMailbox #mail.imapuser.INBOX
[INFO] TorqueMailboxManagerFactory - autocreated Inbox  #mail.imapuser.INBOX
[INFO] TorqueMailboxManagerFactory - createMailbox #mail.imapuser.appendBox
Got <tag>: A003
Got <command>: APPEND
Created command class org.apache.james.imapserver.codec.decode.imap4rev1.AppendCommandParser
[INFO] TorqueMailboxManagerFactory - created ImapMailboxSession #mail.imapuser.appendBox
Got <tag>: A004
Got <command>: APPEND
Created command class org.apache.james.imapserver.codec.decode.imap4rev1.AppendCommandParser
error processing command org.apache.james.api.imap.ProtocolException: Invalid date format.
org.apache.james.api.imap.ProtocolException: Invalid date format.
	at org.apache.james.imapserver.codec.decode.base.AbstractImapCommandParser.dateTime(AbstractImapCommandParser.java:210)
	at org.apache.james.imapserver.codec.decode.imap4rev1.AppendCommandParser.optionalDateTime(AppendCommandParser.java:76)
	at org.apache.james.imapserver.codec.decode.imap4rev1.AppendCommandParser.decode(AppendCommandParser.java:115)
	at org.apache.james.imapserver.codec.decode.base.AbstractImapCommandParser.parse(AbstractImapCommandParser.java:89)
	at org.apache.james.imapserver.codec.decode.main.DefaultImapDecoder.decodeCommandNamed(DefaultImapDecoder.java:96)
	at org.apache.james.imapserver.codec.decode.main.DefaultImapDecoder.decodeCommandTagged(DefaultImapDecoder.java:76)
	at org.apache.james.imapserver.codec.decode.main.DefaultImapDecoder.decode(DefaultImapDecoder.java:60)
	at org.apache.james.experimental.imapserver.ImapRequestHandler.doProcessRequest(ImapRequestHandler.java:105)
	at org.apache.james.experimental.imapserver.ImapRequestHandler.handleRequest(ImapRequestHandler.java:92)
	at org.apache.james.experimental.imapserver.ExperimentalHostSystem$Session.readLine(ExperimentalHostSystem.java:248)
	at org.apache.james.test.functional.imap.ProtocolSession$ServerResponse.readLine(ProtocolSession.java:313)
	at org.apache.james.test.functional.imap.ProtocolSession$ServerResponse.checkResponse(ProtocolSession.java:282)
	at org.apache.james.test.functional.imap.ProtocolSession$ServerResponse.testProtocol(ProtocolSession.java:272)
	at org.apache.james.test.functional.imap.ProtocolSession.runSessions(ProtocolSession.java:75)
	at org.apache.james.test.functional.imap.AbstractProtocolTest.runSessions(AbstractProtocolTest.java:101)
	at org.apache.james.test.functional.imap.SimpleScriptedTestProtocol.scriptTest(SimpleScriptedTestProtocol.java:56)
	at org.apache.james.test.functional.imap.AbstractAuthenticatedStateTestSuite.testAppend(AbstractAuthenticatedStateTestSuite.java:83)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:324)
	at junit.framework.TestCase.runTest(TestCase.java:164)
	at junit.framework.TestCase.runBare(TestCase.java:130)
	at junit.framework.TestResult$1.protect(TestResult.java:106)
	at junit.framework.TestResult.runProtected(TestResult.java:124)
	at junit.framework.TestResult.run(TestResult.java:109)
	at junit.framework.TestCase.run(TestCase.java:120)
	at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)
	at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
Caused by: java.text.ParseException: Unparseable date: "17-Jul-1996 02:44:25 -0700"
	at java.text.DateFormat.parse(DateFormat.java:335)
	at org.apache.james.imapserver.codec.decode.base.AbstractImapCommandParser.dateTime(AbstractImapCommandParser.java:207)
	... 32 more
ERROR - Invalid date format. Command should be '<tag> APPEND <mailbox> [<flag_list>] [<date_time>] literal'


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org