[OP-136] CLONE 3.x - T#11012 T#11601 Cannot parse email containing an attachment with multiple key-value name Created: 17/Nov/14  Updated: 11/May/16  Resolved: 09/Oct/15

Status: Closed
Project: Opush
Component/s: None
Affects Version/s: 3.0.3
Fix Version/s: 3.1.1

Type: Bug Priority: Normal
Reporter: Thomas HILAIRE Assignee: Thomas HILAIRE
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: File 33502.eml    
Issue Links:
Cloners
is cloned by OBMFULL-6428 CLONE 2.5 - T#11012 T#11601 Cannot pa... Closed
Rank: 6554

 Description   

Pre-conditions

OBM on Debian (tested with wheezy and Cyrus v2.4.16-Debian-2.4.16-4+deb7u2).
Cannot be reproduced with OBM on CentOS as I can't import the email, it complains by saying : A005 NO Message contains invalid header

Have an email containing an attachment with multiple key-value entry for its name like :


--Boundary_(ID_qICUBLUGegfH+OcwQRmMAw)
Content-id: <3b1a53bf-8776-4156-0178-cb5d38fdcd72@icloud.com>
Content-type: application/octet-stream; name*1*=utf-8''%42%41%20%2B%20%51%53%20%5F%20%41%73; name*2*=%73%75%72%61%6E%63%65%20%44%C3%A9%63; name*3*=%C3%A8%73%20%70%6F%75%72%20%49%6E%76; name*4*=%65%73%74%69%73%73%65%75%72%2E%70%64%66
Content-transfer-encoding: BASE64
Content-disposition: attachment; filename*1*=utf-8''%42%41%20%2B%20%51%53%20%5F%20%41%73; filename*2*=%73%75%72%61%6E%63%65%20%44%C3%A9%63; filename*3*=%C3%A8%73%20%70%6F%75%72%20%49%6E%76; filename*4*=%65%73%74%69%73%73%65%75%72%2E%70%64%66

JVBERi0xLjUNJeLjz9MNCjEwODUgMCBvYmoNPDwvTGluZWFyaXplZCAxL0wg
MjU4MjY1L08gMTA4Ny9FIDczMTM4L04gNy9UIDIzNjQ0OC9IIFsgMTQ5NiA1
NDldPj4NZW5kb2JqDSAgICAgICAgICAgIA14cmVmDTEwODUgNjANMDAwMDAw
MDAxNiAwMDAwMCBuDQowMDAwMDAyMjQ5IDAwMDAwIG4NCjAwMDAwMDI0MTUg
MDAwMDAgbg0KMDAwMDAwMzAxNSAwMDAwMCBuDQowMDAwMDAzNDk5IDAwMDAw

Reproduction steps

  1. As usera, I have such email in my INBOX
  2. As usera, I try to synchronize my INBOX

Current behavior

  1. I can't synchronize my INBOX

Expected behavior

  1. I can synchronize my INBOX and receive the mail


 Comments   
Comment by Lionel MOREIRA [ 27/Mar/15 ]

I guess this .eml file produces that bug.

Comment by Thomas HILAIRE [ 09/Oct/15 ]

QA: follow reproduction steps, try to synchronize both attached .eml in the cloned 2.5 ticket
Impacts: global email sync but, we should be more focused on all kinds of attachement

Comment by Jenkins Continuous Integration Server [ 09/Oct/15 ]

ABORTED: Integrated in opush-master-3.1 #33
OP-136 Now able to sync multiple key-value name email (thilaire: eeb0cdf2b34012df1d034d200423d3a6f076530a)

  • push-mail/src/test/java/org/obm/push/mail/bean/BeansTest.java
  • integration-testing/opush/src/test/resources/eml/asteriskCharset.eml
  • integration-testing/opush/src/test/resources/eml/asteriskNoCharset.eml
  • integration-testing/opush/src/test/resources/eml/asteriskGrouping.eml
  • pom.xml
  • integration-testing/opush/src/test/java/org/obm/opush/command/sync/SyncHandlerWithBackendTest.java
Comment by Stephane COLSON [ 12/Oct/15 ]

OK

Comment by Jenkins Continuous Integration Server [ 11/May/16 ]

ABORTED: Integrated in opush-master #262
OP-136 Now able to sync multiple key-value name email (thilaire: eeb0cdf2b34012df1d034d200423d3a6f076530a)

  • push-mail/src/test/java/org/obm/push/mail/bean/BeansTest.java
  • integration-testing/opush/src/test/resources/eml/asteriskGrouping.eml
  • pom.xml
  • integration-testing/opush/src/test/resources/eml/asteriskCharset.eml
  • integration-testing/opush/src/test/resources/eml/asteriskNoCharset.eml
  • integration-testing/opush/src/test/java/org/obm/opush/command/sync/SyncHandlerWithBackendTest.java
Generated at Sat Aug 24 06:47:00 CEST 2019 using JIRA 6.1.1#6155-sha1:7188aeec9a6b57d61ea04c52f235f15f55c105e2.