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

Fix replies on Arender textbox annotations

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • 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:
      2

      Description

      Steps to reproduce:

      • Given a Picture document, navigate to the annotations tab.
      • Add a textbox annotation to the picture and save.
      • Notice that it is not possible to reply to textbox annotations.
      • Add a polygon annotation to the picture and save.
      • Add a reply to the polygon annotation and save.
      • In a separate incognito window, load the same Picture document in JSF.
      • Observe that all annotations and replies created in Web UI are shown as comments and replies in JSF.
      • Reply to each comment.
      • Return to the Web UI window and refresh the page.
        => Annotations have disappeared.

      Error in browser console:

      VM3552 arendergwt-0.js:2313 Wed Oct 17 10:48:44 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 logs:

      2018-10-17T10:49:26,813 ERROR [Nuxeo-Work-default-2:109977369794252.1003269638] [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]
      
      • Add another annotation to the Picture document in Web UI and save.
        => Annotation immediately disappears.

      Error in console:

      arendergwt-0.js:2313 Wed Oct 17 10:51:18 GMT+200 2018 com.arondor.viewer.client.documentcontent.annotation.stickyNote.DefaultStickyNoteItemPresenter
      SEVERE: Lost race, sticky note arrives too soon compared to annotation policyjava.lang.IllegalStateException: No AnnotationCreationPolicy provided !
      	at Unknown.Qd(arendergwt-0.js)
      	at Unknown.Od(arendergwt-0.js)
      	at Unknown.Vd(arendergwt-0.js)
      	at Unknown.Jg(arendergwt-0.js)
      	at Unknown.new TDf(arendergwt-0.js)
      	at Unknown.oSb(arendergwt-10.js)
      	at Unknown.o_b(arendergwt-10.js)
      	at Unknown.C9b(arendergwt-10.js)
      	at Unknown.bcd(arendergwt-0.js)
      	at Unknown.dcd(arendergwt-0.js)
      	at Unknown.Zbd(arendergwt-0.js)
      	at Unknown.acd(arendergwt-0.js)
      	at Unknown.Y_b(arendergwt-10.js)
      	at Unknown.G0b(arendergwt-10.js)
      	at Unknown.c1b(arendergwt-10.js)
      	at Unknown.bSb(arendergwt-10.js)
      	at Unknown.RQb(arendergwt-10.js)
      	at Unknown.$Qb(arendergwt-10.js)
      	at Unknown.HT(arendergwt-10.js)
      	at Unknown.tae(arendergwt-0.js)
      	at Unknown.AKc(arendergwt-10.js)
      	at Unknown.FKc(arendergwt-10.js)
      	at Unknown.JKc(arendergwt-10.js)
      	at Unknown.GKc(arendergwt-10.js)
      	at Unknown._Kc(arendergwt-10.js)
      	at Unknown.bLc(arendergwt-10.js)
      	at Unknown.TMb(arendergwt-10.js)
      	at Unknown.DF(arendergwt-10.js)
      	at Unknown.fH(arendergwt-10.js)
      	at Unknown.wcc(arendergwt-10.js)
      	at Unknown.E3b(arendergwt-0.js)
      	at Unknown.tae(arendergwt-0.js)
      	at Unknown.lae(arendergwt-0.js)
      	at Unknown.xy(arendergwt-0.js)
      	at Unknown.t3b(arendergwt-0.js)
      	at Unknown.zy(arendergwt-0.js)
      	at Unknown.My(arendergwt-0.js)
      	at Unknown.ukf(arendergwt-0.js)
      	at Unknown.fmf(arendergwt-0.js)
      	at Unknown.h_d(arendergwt-0.js)
      	at Unknown.k_d(arendergwt-0.js)
      	at Unknown.eval(arendergwt-0.js)
      

      Removing the textbox comment reply fixes the problem.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 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