[OP-235] Weird iOS GetAttachment request trigger NPE Created: 04/Apr/16  Updated: 26/Apr/16  Resolved: 11/Apr/16

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

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

Issue Links:
depends on OP-234 Errors in GetAttachment can produce a... Closed
Story Points: 1
Rank: 6983
Sprint: 2016#01



Reproduction steps

no reproduction steps has been found yet
It seems to be an unexpected request from ios devices, they try to fetch the attachment "191AF69B-0088-47D2-AD66-6C9D08949C46" which does not exist.
You can search for this UUID on the web, multiple activesync servers encounter this same issue.

Current behavior

  1. NOK A NPE error is printed in logs
    09:52:23.803 [ERROR] {o.o.a.t.TransactionalInterceptor} [t1252082/cGetAttachment/r1253280/user@linagora.com] transaction was rollback
    java.lang.NullPointerException: null
    	at org.obm.push.mail.MailBackendImpl.getAttachment(MailBackendImpl.java:751) ~[push-mail-3.1.1-beta1.jar:na]
    	at org.obm.breakdownduration.BreakdownDurationInterceptor.invoke(BreakdownDurationInterceptor.java:58) ~[breakdown-duration-3.1.2.jar:na]
    	at org.obm.push.handler.GetAttachmentHandler.getAttachment(GetAttachmentHandler.java:88) ~[push-core-3.1.1-beta1.jar:na]
    	at org.obm.push.handler.GetAttachmentHandler.process(GetAttachmentHandler.java:70) ~[push-core-3.1.1-beta1.jar:na]
    	at org.obm.push.ActiveSyncServlet.processActiveSyncMethod(ActiveSyncServlet.java:258) ~[push-core-3.1.1-beta1.jar:na]
    	at org.obm.push.ActiveSyncServlet.doPost(ActiveSyncServlet.java:174) ~[push-core-3.1.1-beta1.jar:na]
    	at org.obm.annotations.transactional.TransactionalInterceptor.managerTransaction(TransactionalInterceptor.java:87) ~[annotations-

Expected behavior

  1. OK No more NPE error

Additional informations

Comment by Thomas HILAIRE [ 08/Apr/16 ]

This ticket is resolved by OP-234

Comment by Stephane COLSON [ 26/Apr/16 ]

OK, tested with a curl

Generated at Tue Aug 04 08:03:19 CEST 2020 using JIRA 6.1.1#6155-sha1:7188aeec9a6b57d61ea04c52f235f15f55c105e2.