Opush
  1. Opush
  2. OP-233

Create an existing but non-subscribed folder, should subscribe to it

    Details

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

      Description

      Pre-conditions

      Reproduction steps

      1. As usera with RC, create a mail folder 'custom'
      2. As usera with RC, I move an email to this folder
      3. As usera with RC, unsubscribe to it
      4. As usera with opush, try to create the folder 'custom'

      Current behavior

      1. NOK nothing happen on the device, or a "failed" message is shown

      Expected behavior

      1. OK the folder appears on the device, and you can sync its emails
      2. OK the folder is subscribed on RC too

      Additional informations

      11:31:32.324 [ERROR] {o.o.p.h.FolderCreateHandler} [t147/cFolderCreate/r111/usera@obm40.lyn.lng] Cannot create two times a folder.
      org.obm.push.exception.activesync.FolderAlreadyExistsException: Cannot create two times a folder.
              at org.obm.push.mail.MailBackendImpl.createFolder(MailBackendImpl.java:915) ~[push-mail-3.1.1.jar:na]
              at org.obm.breakdownduration.BreakdownDurationInterceptor.invoke(BreakdownDurationInterceptor.java:58) ~[breakdown-duration-3.1.2.jar:na]
              at org.obm.push.HierarchyExporter.createFolder(HierarchyExporter.java:82) ~[push-core-3.1.1.jar:na]
              at org.obm.push.handler.FolderCreateHandler.createFolder(FolderCreateHandler.java:136) ~[push-core-3.1.1.jar:na]
              at org.obm.push.handler.FolderCreateHandler.process(FolderCreateHandler.java:97) ~[push-core-3.1.1.jar:na]
              at org.obm.push.handler.WbxmlRequestHandler.process(WbxmlRequestHandler.java:100) ~[push-core-3.1.1.jar:na]
              at org.obm.push.ActiveSyncServlet.processActiveSyncMethod(ActiveSyncServlet.java:258) ~[push-core-3.1.1.jar:na]
              at org.obm.push.ActiveSyncServlet.doPost(ActiveSyncServlet.java:174) ~[push-core-3.1.1.jar:na]
              at org.obm.annotations.transactional.TransactionalInterceptor.managerTransaction(TransactionalInterceptor.java:87) ~[annotations-3.1.2.jar:na]
              at org.obm.annotations.transactional.TransactionalInterceptor.invoke(TransactionalInterceptor.java:73) ~[annotations-3.1.2.jar:na]
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:707) [javax.servlet-api-3.1.0.jar:3.1.0]
      ...
      

        Activity

        David Dolcimascolo made changes -
        Field Original Value New Value
        Sprint 2016#01 [ 30 ]
        David Dolcimascolo made changes -
        Story Points 4
        Thomas HILAIRE made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        Thomas HILAIRE made changes -
        Status In Progress [ 3 ] In Review [ 10001 ]
        Thomas HILAIRE made changes -
        Status In Review [ 10001 ] Ready To Merge [ 10002 ]
        Resolution Fixed [ 1 ]
        Thomas HILAIRE made changes -
        Description Create an existing but non-subscribed folder, should make it subscribed h4. Pre-conditions

        h4. Reproduction steps
        # As _usera_ with RC, create a mail folder 'custom'
        # As _usera_ with RC, I move an email to this folder
        # As _usera_ with RC, unsubscribe to it
        # As _usera_ with opush, try to create the folder 'custom'

        h4. Current behavior
        # {color:red}NOK{color} nothing happen on the device, or a "failed" message is shown

        h4. Expected behavior
        # {color:green}OK{color} the folder appears on the device, and you can sync its emails
        # {color:green}OK{color} the folder is subscribed on RC too

        h4. Additional informations
        David Dolcimascolo made changes -
        Status Ready To Merge [ 10002 ] Resolved [ 5 ]
        Stephane COLSON made changes -
        Description h4. Pre-conditions

        h4. Reproduction steps
        # As _usera_ with RC, create a mail folder 'custom'
        # As _usera_ with RC, I move an email to this folder
        # As _usera_ with RC, unsubscribe to it
        # As _usera_ with opush, try to create the folder 'custom'

        h4. Current behavior
        # {color:red}NOK{color} nothing happen on the device, or a "failed" message is shown

        h4. Expected behavior
        # {color:green}OK{color} the folder appears on the device, and you can sync its emails
        # {color:green}OK{color} the folder is subscribed on RC too

        h4. Additional informations
        h4. Pre-conditions

        h4. Reproduction steps
        # As _usera_ with RC, create a mail folder 'custom'
        # As _usera_ with RC, I move an email to this folder
        # As _usera_ with RC, unsubscribe to it
        # As _usera_ with opush, try to create the folder 'custom'

        h4. Current behavior
        # {color:red}NOK{color} nothing happen on the device, or a "failed" message is shown

        h4. Expected behavior
        # {color:green}OK{color} the folder appears on the device, and you can sync its emails
        # {color:green}OK{color} the folder is subscribed on RC too

        h4. Additional informations
        {code}
        11:31:32.324 [ERROR] {o.o.p.h.FolderCreateHandler} [t147/cFolderCreate/r111/usera@obm40.lyn.lng] Cannot create two times a folder.
        org.obm.push.exception.activesync.FolderAlreadyExistsException: Cannot create two times a folder.
                at org.obm.push.mail.MailBackendImpl.createFolder(MailBackendImpl.java:915) ~[push-mail-3.1.1.jar:na]
                at org.obm.breakdownduration.BreakdownDurationInterceptor.invoke(BreakdownDurationInterceptor.java:58) ~[breakdown-duration-3.1.2.jar:na]
                at org.obm.push.HierarchyExporter.createFolder(HierarchyExporter.java:82) ~[push-core-3.1.1.jar:na]
                at org.obm.push.handler.FolderCreateHandler.createFolder(FolderCreateHandler.java:136) ~[push-core-3.1.1.jar:na]
                at org.obm.push.handler.FolderCreateHandler.process(FolderCreateHandler.java:97) ~[push-core-3.1.1.jar:na]
                at org.obm.push.handler.WbxmlRequestHandler.process(WbxmlRequestHandler.java:100) ~[push-core-3.1.1.jar:na]
                at org.obm.push.ActiveSyncServlet.processActiveSyncMethod(ActiveSyncServlet.java:258) ~[push-core-3.1.1.jar:na]
                at org.obm.push.ActiveSyncServlet.doPost(ActiveSyncServlet.java:174) ~[push-core-3.1.1.jar:na]
                at org.obm.annotations.transactional.TransactionalInterceptor.managerTransaction(TransactionalInterceptor.java:87) ~[annotations-3.1.2.jar:na]
                at org.obm.annotations.transactional.TransactionalInterceptor.invoke(TransactionalInterceptor.java:73) ~[annotations-3.1.2.jar:na]
                at javax.servlet.http.HttpServlet.service(HttpServlet.java:707) [javax.servlet-api-3.1.0.jar:3.1.0]
        ...
        {code}
        Stephane COLSON made changes -
        Description h4. Pre-conditions

        h4. Reproduction steps
        # As _usera_ with RC, create a mail folder 'custom'
        # As _usera_ with RC, I move an email to this folder
        # As _usera_ with RC, unsubscribe to it
        # As _usera_ with opush, try to create the folder 'custom'

        h4. Current behavior
        # {color:red}NOK{color} nothing happen on the device, or a "failed" message is shown

        h4. Expected behavior
        # {color:green}OK{color} the folder appears on the device, and you can sync its emails
        # {color:green}OK{color} the folder is subscribed on RC too

        h4. Additional informations
        {code}
        11:31:32.324 [ERROR] {o.o.p.h.FolderCreateHandler} [t147/cFolderCreate/r111/usera@obm40.lyn.lng] Cannot create two times a folder.
        org.obm.push.exception.activesync.FolderAlreadyExistsException: Cannot create two times a folder.
                at org.obm.push.mail.MailBackendImpl.createFolder(MailBackendImpl.java:915) ~[push-mail-3.1.1.jar:na]
                at org.obm.breakdownduration.BreakdownDurationInterceptor.invoke(BreakdownDurationInterceptor.java:58) ~[breakdown-duration-3.1.2.jar:na]
                at org.obm.push.HierarchyExporter.createFolder(HierarchyExporter.java:82) ~[push-core-3.1.1.jar:na]
                at org.obm.push.handler.FolderCreateHandler.createFolder(FolderCreateHandler.java:136) ~[push-core-3.1.1.jar:na]
                at org.obm.push.handler.FolderCreateHandler.process(FolderCreateHandler.java:97) ~[push-core-3.1.1.jar:na]
                at org.obm.push.handler.WbxmlRequestHandler.process(WbxmlRequestHandler.java:100) ~[push-core-3.1.1.jar:na]
                at org.obm.push.ActiveSyncServlet.processActiveSyncMethod(ActiveSyncServlet.java:258) ~[push-core-3.1.1.jar:na]
                at org.obm.push.ActiveSyncServlet.doPost(ActiveSyncServlet.java:174) ~[push-core-3.1.1.jar:na]
                at org.obm.annotations.transactional.TransactionalInterceptor.managerTransaction(TransactionalInterceptor.java:87) ~[annotations-3.1.2.jar:na]
                at org.obm.annotations.transactional.TransactionalInterceptor.invoke(TransactionalInterceptor.java:73) ~[annotations-3.1.2.jar:na]
                at javax.servlet.http.HttpServlet.service(HttpServlet.java:707) [javax.servlet-api-3.1.0.jar:3.1.0]
        ...
        {code}
        h4. Pre-conditions

        h4. Reproduction steps
        # As _usera_ with RC, create a mail folder 'custom'
        # As _usera_ with RC, I move an email to this folder
        # As _usera_ with RC, unsubscribe to it
        # As _usera_ with opush, try to create the folder 'custom'

        h4. Current behavior
        # {color:red}NOK{color} nothing happen on the device, or a "failed" message is shown

        h4. Expected behavior
        # {color:green}OK{color} the folder appears on the device, and you can sync its emails
        # {color:green}OK{color} the folder is subscribed on RC too

        h4. Additional informations
        {code}
        11:31:32.324 [ERROR] {o.o.p.h.FolderCreateHandler} [t147/cFolderCreate/r111/usera@obm40.lyn.lng] Cannot create two times a folder.
        org.obm.push.exception.activesync.FolderAlreadyExistsException: Cannot create two times a folder.
                at org.obm.push.mail.MailBackendImpl.createFolder(MailBackendImpl.java:915) ~[push-mail-3.1.1.jar:na]
                at org.obm.breakdownduration.BreakdownDurationInterceptor.invoke(BreakdownDurationInterceptor.java:58) ~[breakdown-duration-3.1.2.jar:na]
                at org.obm.push.HierarchyExporter.createFolder(HierarchyExporter.java:82) ~[push-core-3.1.1.jar:na]
                at org.obm.push.handler.FolderCreateHandler.createFolder(FolderCreateHandler.java:136) ~[push-core-3.1.1.jar:na]
                at org.obm.push.handler.FolderCreateHandler.process(FolderCreateHandler.java:97) ~[push-core-3.1.1.jar:na]
                at org.obm.push.handler.WbxmlRequestHandler.process(WbxmlRequestHandler.java:100) ~[push-core-3.1.1.jar:na]
                at org.obm.push.ActiveSyncServlet.processActiveSyncMethod(ActiveSyncServlet.java:258) ~[push-core-3.1.1.jar:na]
                at org.obm.push.ActiveSyncServlet.doPost(ActiveSyncServlet.java:174) ~[push-core-3.1.1.jar:na]
                at org.obm.annotations.transactional.TransactionalInterceptor.managerTransaction(TransactionalInterceptor.java:87) ~[annotations-3.1.2.jar:na]
                at org.obm.annotations.transactional.TransactionalInterceptor.invoke(TransactionalInterceptor.java:73) ~[annotations-3.1.2.jar:na]
                at javax.servlet.http.HttpServlet.service(HttpServlet.java:707) [javax.servlet-api-3.1.0.jar:3.1.0]
        ...
        {code}

        Folder "Unwanted" created and retrieve in RC
        Stephane COLSON made changes -
        Description h4. Pre-conditions

        h4. Reproduction steps
        # As _usera_ with RC, create a mail folder 'custom'
        # As _usera_ with RC, I move an email to this folder
        # As _usera_ with RC, unsubscribe to it
        # As _usera_ with opush, try to create the folder 'custom'

        h4. Current behavior
        # {color:red}NOK{color} nothing happen on the device, or a "failed" message is shown

        h4. Expected behavior
        # {color:green}OK{color} the folder appears on the device, and you can sync its emails
        # {color:green}OK{color} the folder is subscribed on RC too

        h4. Additional informations
        {code}
        11:31:32.324 [ERROR] {o.o.p.h.FolderCreateHandler} [t147/cFolderCreate/r111/usera@obm40.lyn.lng] Cannot create two times a folder.
        org.obm.push.exception.activesync.FolderAlreadyExistsException: Cannot create two times a folder.
                at org.obm.push.mail.MailBackendImpl.createFolder(MailBackendImpl.java:915) ~[push-mail-3.1.1.jar:na]
                at org.obm.breakdownduration.BreakdownDurationInterceptor.invoke(BreakdownDurationInterceptor.java:58) ~[breakdown-duration-3.1.2.jar:na]
                at org.obm.push.HierarchyExporter.createFolder(HierarchyExporter.java:82) ~[push-core-3.1.1.jar:na]
                at org.obm.push.handler.FolderCreateHandler.createFolder(FolderCreateHandler.java:136) ~[push-core-3.1.1.jar:na]
                at org.obm.push.handler.FolderCreateHandler.process(FolderCreateHandler.java:97) ~[push-core-3.1.1.jar:na]
                at org.obm.push.handler.WbxmlRequestHandler.process(WbxmlRequestHandler.java:100) ~[push-core-3.1.1.jar:na]
                at org.obm.push.ActiveSyncServlet.processActiveSyncMethod(ActiveSyncServlet.java:258) ~[push-core-3.1.1.jar:na]
                at org.obm.push.ActiveSyncServlet.doPost(ActiveSyncServlet.java:174) ~[push-core-3.1.1.jar:na]
                at org.obm.annotations.transactional.TransactionalInterceptor.managerTransaction(TransactionalInterceptor.java:87) ~[annotations-3.1.2.jar:na]
                at org.obm.annotations.transactional.TransactionalInterceptor.invoke(TransactionalInterceptor.java:73) ~[annotations-3.1.2.jar:na]
                at javax.servlet.http.HttpServlet.service(HttpServlet.java:707) [javax.servlet-api-3.1.0.jar:3.1.0]
        ...
        {code}

        Folder "Unwanted" created and retrieve in RC
        h4. Pre-conditions

        h4. Reproduction steps
        # As _usera_ with RC, create a mail folder 'custom'
        # As _usera_ with RC, I move an email to this folder
        # As _usera_ with RC, unsubscribe to it
        # As _usera_ with opush, try to create the folder 'custom'

        h4. Current behavior
        # {color:red}NOK{color} nothing happen on the device, or a "failed" message is shown

        h4. Expected behavior
        # {color:green}OK{color} the folder appears on the device, and you can sync its emails
        # {color:green}OK{color} the folder is subscribed on RC too

        h4. Additional informations
        {code}
        11:31:32.324 [ERROR] {o.o.p.h.FolderCreateHandler} [t147/cFolderCreate/r111/usera@obm40.lyn.lng] Cannot create two times a folder.
        org.obm.push.exception.activesync.FolderAlreadyExistsException: Cannot create two times a folder.
                at org.obm.push.mail.MailBackendImpl.createFolder(MailBackendImpl.java:915) ~[push-mail-3.1.1.jar:na]
                at org.obm.breakdownduration.BreakdownDurationInterceptor.invoke(BreakdownDurationInterceptor.java:58) ~[breakdown-duration-3.1.2.jar:na]
                at org.obm.push.HierarchyExporter.createFolder(HierarchyExporter.java:82) ~[push-core-3.1.1.jar:na]
                at org.obm.push.handler.FolderCreateHandler.createFolder(FolderCreateHandler.java:136) ~[push-core-3.1.1.jar:na]
                at org.obm.push.handler.FolderCreateHandler.process(FolderCreateHandler.java:97) ~[push-core-3.1.1.jar:na]
                at org.obm.push.handler.WbxmlRequestHandler.process(WbxmlRequestHandler.java:100) ~[push-core-3.1.1.jar:na]
                at org.obm.push.ActiveSyncServlet.processActiveSyncMethod(ActiveSyncServlet.java:258) ~[push-core-3.1.1.jar:na]
                at org.obm.push.ActiveSyncServlet.doPost(ActiveSyncServlet.java:174) ~[push-core-3.1.1.jar:na]
                at org.obm.annotations.transactional.TransactionalInterceptor.managerTransaction(TransactionalInterceptor.java:87) ~[annotations-3.1.2.jar:na]
                at org.obm.annotations.transactional.TransactionalInterceptor.invoke(TransactionalInterceptor.java:73) ~[annotations-3.1.2.jar:na]
                at javax.servlet.http.HttpServlet.service(HttpServlet.java:707) [javax.servlet-api-3.1.0.jar:3.1.0]
        ...
        {code}
        Stephane COLSON made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Agile