mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Merged HEAD-BUG-FIX (5.0/Cloud) to HEAD (4.3/Cloud)
72741: Merged V4.2-BUG-FIX (4.2.3) to HEAD-BUG-FIX (4.3/Cloud) 72386: Merged V4.1-BUG-FIX (4.1.10) to V4.2-BUG-FIX (4.2.3) 72280: Merged V4.1.9 (4.1.9) to V4.1-BUG-FIX (4.1.10) 72045: Merged DEV to PATCHES/V4.1.9 72043: MNT-11099: Inbound emails : attachment names not preserved if they contain spaces or accents in the name (Implement UTF-8 content-disposition RFC 5987) Upgrade Java mail from 1.4 to 1.5.2. 72281: Merged V4.1.9 (4.1.9) to V4.1-BUG-FIX (4.1.10) 72053: MNT-11099 Fix Maven coordinates of new version of javax.mail 72282: Merged V4.1.9 (4.1.9) to V4.1-BUG-FIX (4.1.10) 72162: Merged DEV to PATCHES/V4.1.9 72153: MNT-11099: Inbound emails : attachment names not preserved if they contain spaces or accents in the name (Implement UTF-8 content-disposition RFC 5987) Fixed compile error in the ImapMessageTest. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@74739 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -284,7 +284,7 @@ public class ImapMessageTest extends TestCase
|
||||
BODY bodyNew = getMessageBody(folder, uid);
|
||||
|
||||
// The body should be updated
|
||||
assertFalse(Arrays.equals(bodyNew.data.getBytes(), body.data.getBytes()));
|
||||
assertFalse(Arrays.equals(bodyNew.getByteArray().getBytes(), body.getByteArray().getBytes()));
|
||||
|
||||
// Parse the multipart MIME message
|
||||
message = new MimeMessage(Session.getDefaultInstance(new Properties()), new BufferedInputStream(bodyNew.getByteArrayInputStream()));
|
||||
@@ -651,7 +651,7 @@ public class ImapMessageTest extends TestCase
|
||||
{
|
||||
FetchResponse fetchResponse = (FetchResponse) r[0];
|
||||
UID uid = (UID) fetchResponse.getItem(UID.class);
|
||||
logger.debug("MSGNO=" + uid.msgno + ", UID="+uid.uid);
|
||||
logger.debug("SECNUM=" + uid.seqnum + ", UID="+uid.uid);
|
||||
return uid.uid;
|
||||
}
|
||||
}
|
||||
@@ -691,7 +691,7 @@ public class ImapMessageTest extends TestCase
|
||||
*/
|
||||
private static Integer getMessageSize(IMAPFolder folder, final Long uid) throws MessagingException
|
||||
{
|
||||
return getMessageBody(folder, uid).data.getCount();
|
||||
return getMessageBody(folder, uid).getByteArray().getCount();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user