Uploaded image for project: 'Nuxeo Enhanced Viewer'
  1. Nuxeo Enhanced Viewer
  2. NEV-69

Fix nested replies on Arender annotations

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Not A Bug
    • Affects Version/s: None
    • Fix Version/s: 1.0.2
    • Component/s: Nuxeo Connector
    • Tags:
    • Backlog priority:
      1,000
    • Browser:
    • Sprint:
      nxcore 10.10.1
    • Story Points:
      3

      Description

      Steps to reproduce:

      • Given a Picture document, navigate to the comments tab in JSF.
      • Add a comment.
      • Reply to that comment.
      • Reply to that reply, then reply to that reply and so on until you have a long list of nested comments.
      • In a separate incognito window, load the same Picture document in Web UI and click on the annotations tab.
        => No annotations are shown.

      Reproduced with the original annotation created in Web UI and a single comment on it written in JSF.

      Error in browser console:

      arendergwt-0.js:2313 Wed Oct 17 11:10:16 GMT+200 2018 com.arondor.viewer.client.documentcontent.annotation.DefaultAnnotationManager
      SEVERE: Could not fetch annotations list for document b64_ZGVmYXVsdCxkMmU3ZjU5Ny00ZGQyLTQ2MzQtYTJkZi1iZDVjZmY0MzY2YmUsZmlsZTpjb250ZW50QWRtaW5pc3RyYXRvcg==java.lang.ClassCastException: java.lang.String cannot be cast to java.util.Date
      	at Unknown.Qd(arendergwt-0.js)
      	at Unknown.Nd(arendergwt-0.js)
      	at Unknown.Ud(arendergwt-0.js)
      	at Unknown.Ig(arendergwt-0.js)
      	at Unknown.new TTd(arendergwt-0.js)
      	at Unknown.vnf(arendergwt-0.js)
      	at Unknown.Brf(arendergwt-0.js)
      	at Unknown.OU(arendergwt-0.js)
      	at Unknown.dqf(arendergwt-0.js)
      	at Unknown.Iqf(arendergwt-0.js)
      	at Unknown.Qae(arendergwt-0.js)
      	at Unknown.bbe(arendergwt-0.js)
      	at Unknown.eval(arendergwt-0.js)
      	at Unknown.h_d(arendergwt-0.js)
      	at Unknown.k_d(arendergwt-0.js)
      	at Unknown.eval(arendergwt-0.js)
      

      Error in server log:

      2018-10-17T11:15:04,009 ERROR [Nuxeo-Work-default-3:111813993977091.1489541952] [org.nuxeo.ecm.core.work.AbstractWork] Exception during work: ListenerWork(Listener notificationListener [documentCreated/6d95e14c-2578-4f6c-9d06-924dac6c7338, commentAdded/830730ba-477d-4592-845f-3151bf9d03b9], Progress(?%, ?/0), null)
      org.nuxeo.runtime.transaction.TransactionRuntimeException: Transaction has timed out
      	at org.nuxeo.runtime.transaction.TransactionHelper.checkTransactionTimeout(TransactionHelper.java:223) ~[nuxeo-runtime-jtajca-10.3-SNAPSHOT.jar:?]
      	at org.nuxeo.ecm.core.api.local.LocalSession.getSession(LocalSession.java:108) ~[nuxeo-core-10.3-SNAPSHOT.jar:?]
      	at org.nuxeo.ecm.core.api.AbstractSession.resolveReference(AbstractSession.java:341) ~[nuxeo-core-10.3-SNAPSHOT.jar:?]
      	at org.nuxeo.ecm.core.api.AbstractSession.getDocument(AbstractSession.java:948) ~[nuxeo-core-10.3-SNAPSHOT.jar:?]
      	at org.nuxeo.ecm.platform.comment.impl.PropertyCommentManager.getThreadForComment(PropertyCommentManager.java:134) ~[nuxeo-platform-comment-10.3-SNAPSHOT.jar:?]
      	at org.nuxeo.ecm.platform.comment.impl.PropertyCommentManager.getThreadForComment(PropertyCommentManager.java:136) ~[nuxeo-platform-comment-10.3-SNAPSHOT.jar:?]
      	at org.nuxeo.ecm.platform.comment.listener.CommentNotificationListener.handleNotifications(CommentNotificationListener.java:42) ~[nuxeo-platform-comment-10.3-SNAPSHOT.jar:?]
      	at org.nuxeo.ecm.platform.ec.notification.NotificationEventListener.handleNotifications(NotificationEventListener.java:147) ~[nuxeo-platform-notification-core-10.3-SNAPSHOT.jar:?]
      	at org.nuxeo.ecm.platform.ec.notification.NotificationEventListener.handleEvent(NotificationEventListener.java:114) ~[nuxeo-platform-notification-core-10.3-SNAPSHOT.jar:?]
      	at org.nuxeo.ecm.core.event.impl.AsyncEventExecutor$ListenerWork.work(AsyncEventExecutor.java:221) [nuxeo-core-event-10.3-SNAPSHOT.jar:?]
      	at org.nuxeo.ecm.core.work.AbstractWork.runWorkWithTransaction(AbstractWork.java:437) [nuxeo-core-event-10.3-SNAPSHOT.jar:?]
      	at org.nuxeo.ecm.core.work.AbstractWork.run(AbstractWork.java:357) [nuxeo-core-event-10.3-SNAPSHOT.jar:?]
      	at org.nuxeo.ecm.core.work.WorkHolder.run(WorkHolder.java:57) [nuxeo-core-event-10.3-SNAPSHOT.jar:?]
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_73]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_73]
      	at java.lang.Thread.run(Thread.java:745) [?:1.8.0_73]
      2018-10-17T11:15:04,009 ERROR [Nuxeo-Work-default-3:111813993977091.1489541952] [org.nuxeo.ecm.core.event.impl.AsyncEventExecutor] Failed to execute async event default on listener notificationListener
      org.nuxeo.runtime.transaction.TransactionRuntimeException: Transaction has timed out
      	at org.nuxeo.runtime.transaction.TransactionHelper.checkTransactionTimeout(TransactionHelper.java:223) ~[nuxeo-runtime-jtajca-10.3-SNAPSHOT.jar:?]
      	at org.nuxeo.ecm.core.api.local.LocalSession.getSession(LocalSession.java:108) ~[nuxeo-core-10.3-SNAPSHOT.jar:?]
      	at org.nuxeo.ecm.core.api.AbstractSession.resolveReference(AbstractSession.java:341) ~[nuxeo-core-10.3-SNAPSHOT.jar:?]
      	at org.nuxeo.ecm.core.api.AbstractSession.getDocument(AbstractSession.java:948) ~[nuxeo-core-10.3-SNAPSHOT.jar:?]
      	at org.nuxeo.ecm.platform.comment.impl.PropertyCommentManager.getThreadForComment(PropertyCommentManager.java:134) ~[nuxeo-platform-comment-10.3-SNAPSHOT.jar:?]
      	at org.nuxeo.ecm.platform.comment.impl.PropertyCommentManager.getThreadForComment(PropertyCommentManager.java:136) ~[nuxeo-platform-comment-10.3-SNAPSHOT.jar:?]
      	at org.nuxeo.ecm.platform.comment.listener.CommentNotificationListener.handleNotifications(CommentNotificationListener.java:42) ~[nuxeo-platform-comment-10.3-SNAPSHOT.jar:?]
      	at org.nuxeo.ecm.platform.ec.notification.NotificationEventListener.handleNotifications(NotificationEventListener.java:147) ~[nuxeo-platform-notification-core-10.3-SNAPSHOT.jar:?]
      	at org.nuxeo.ecm.platform.ec.notification.NotificationEventListener.handleEvent(NotificationEventListener.java:114) ~[nuxeo-platform-notification-core-10.3-SNAPSHOT.jar:?]
      	at org.nuxeo.ecm.core.event.impl.AsyncEventExecutor$ListenerWork.work(AsyncEventExecutor.java:221) [nuxeo-core-event-10.3-SNAPSHOT.jar:?]
      	at org.nuxeo.ecm.core.work.AbstractWork.runWorkWithTransaction(AbstractWork.java:437) [nuxeo-core-event-10.3-SNAPSHOT.jar:?]
      	at org.nuxeo.ecm.core.work.AbstractWork.run(AbstractWork.java:357) [nuxeo-core-event-10.3-SNAPSHOT.jar:?]
      	at org.nuxeo.ecm.core.work.WorkHolder.run(WorkHolder.java:57) [nuxeo-core-event-10.3-SNAPSHOT.jar:?]
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_73]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_73]
      	at java.lang.Thread.run(Thread.java:745) [?:1.8.0_73]
      

      Note that annotations in Web UI only allow for 1 additional level of nested annotations, whereas comments in JSF allow for several levels of nested comments.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 4 hours
                  4h