Opush
  1. Opush
  2. OP-235

Weird iOS GetAttachment request trigger NPE

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Normal Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.2.0
    • Labels:
      None
    • Story Points:
      1
    • Rank:
      6983
    • Sprint:
      2016#01

      Description

      Pre-conditions

      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

        Issue Links

          Activity

          Your Time to SLA Plugin License is invalid

            People

            • Assignee:
              Thomas HILAIRE
              Reporter:
              Thomas HILAIRE
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Agile