james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rouaz...@apache.org
Subject [1/2] james-project git commit: JAMES-1953 Show that using an UTF-7 encoded hierarchical seperator when creating a mailbox creates it as if the separator was not encoded
Date Mon, 06 Mar 2017 13:35:42 GMT
Repository: james-project
Updated Branches:
  refs/heads/master 6b1490481 -> 24480cd4d


JAMES-1953 Show that using an UTF-7 encoded hierarchical seperator when creating a mailbox
creates it as if the separator was not encoded


Project: http://git-wip-us.apache.org/repos/asf/james-project/repo
Commit: http://git-wip-us.apache.org/repos/asf/james-project/commit/eb8bb5a7
Tree: http://git-wip-us.apache.org/repos/asf/james-project/tree/eb8bb5a7
Diff: http://git-wip-us.apache.org/repos/asf/james-project/diff/eb8bb5a7

Branch: refs/heads/master
Commit: eb8bb5a71aa9bb356cc4dd69aea7a49c00ba094a
Parents: 290ada2
Author: Raphael Ouazana <raphael.ouazana@linagora.com>
Authored: Fri Mar 3 17:28:13 2017 +0100
Committer: Raphael Ouazana <raphael.ouazana@linagora.com>
Committed: Fri Mar 3 17:28:13 2017 +0100

----------------------------------------------------------------------
 .../org/apache/james/imap/scripts/Create.test      | 17 ++++++++++++++++-
 1 file changed, 16 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/james-project/blob/eb8bb5a7/mpt/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/Create.test
----------------------------------------------------------------------
diff --git a/mpt/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/Create.test
b/mpt/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/Create.test
index 97259ec..87a49d7 100644
--- a/mpt/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/Create.test
+++ b/mpt/impl/imap-mailbox/core/src/main/resources/org/apache/james/imap/scripts/Create.test
@@ -58,6 +58,17 @@ S: 18 OK LIST completed.
 C: 19 CREATE alpha
 S: 19 NO CREATE failed. Mailbox already exists.
 
+#
+# When creating a mailbox which name contains the hierarchical separator UTF-7 encoded
+# The creation should succeed as if trying to create a folder and its subfolder
+#
+C: 20 CREATE "one&AC4-two"
+S: 20 OK CREATE completed.
+C: 21 LIST "" one*
+S: \* LIST \(\\HasChildren\) "." "one"
+S: \* LIST \(\\HasNoChildren\) "." "one.two"
+S: 21 OK LIST completed.
+
 # Cleanup
 C: a1 DELETE test1.subfolder1
 S: a1 OK DELETE completed.
@@ -78,4 +89,8 @@ S: a11 OK DELETE completed.
 C: a11 DELETE another.test
 S: a11 OK DELETE completed.
 C: a11 DELETE another
-S: a11 OK DELETE completed.
\ No newline at end of file
+S: a11 OK DELETE completed.
+C: a12 DELETE one.two
+S: a12 OK DELETE completed.
+C: a12 DELETE one
+S: a12 OK DELETE completed.
\ No newline at end of file


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


Mime
View raw message