Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-20052

Repeated errors in the console logs when using the WYSIWYG editor

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • 15.5.4, 15.9, 14.10.19
    • 13.10.7
    • Realtime
    • None
    • High
    • Unknown
    • N/A
    • N/A

    Description

      I'm marking this issue as minor as it's not impacting the user directly. However, it makes the debugging of the Realtime editor a bit more difficult, and it could also be the symptom of another underlying problem that could end up affecting the user.

      Steps to reproduce :

      • Start with a clean instance of XWiki 13.10.7 with the realtime configured for the main wiki, and with 2 users.
      • Create a new blank page. Save & view
      • Make user 1 edit the page, which will start a realtime session
      • Make user 2 edit the page, which will make him join the realtime session
      • With user 1, white "Hello" in the page

      Observed :
      The two consoles of the two clients will start filling in with a sequence of errors and logs.

      The reported error is :

      shjson2 !== shjson wysiwygEditor.js:666:20
          onRemote wysiwygEditor.js:666
          M chainpad-netflux.js:136
          ia chainpad.dist.js:1240
          ia chainpad.dist.js:1240
          ta chainpad.dist.js:1503
          message chainpad.dist.js:1696
          b chainpad-netflux.js:403
          ba chainpad-netflux.js:435
          f chainpad-netflux.js:473
          A netflux-client.js:310
          A netflux-client.js:308
          onmessage netflux-client.js:404
          (Async: EventHandlerNonNull)
          g netflux-client.js:404
          connect netflux-client.js:459
          connect netflux-client.js:456
          <anonymous> loader.js:647
          execCb require.min.js:5
          check require.min.js:5
          enable require.min.js:5
          bind require.min.js:5
          emit require.min.js:5
          each require.min.js:5
          emit require.min.js:5
          check require.min.js:5
          enable require.min.js:5
          init require.min.js:5
          o require.min.js:5
          bind require.min.js:5
          load polyfills.js:57
          execCb require.min.js:5
          check require.min.js:5
          enable require.min.js:5
          bind require.min.js:5
          emit require.min.js:5
          each require.min.js:5
          emit require.min.js:5
          check require.min.js:5
          enable require.min.js:5
          bind require.min.js:5
          emit require.min.js:5
          each require.min.js:5
          emit require.min.js:5
          check require.min.js:5
          enable require.min.js:5
          init require.min.js:5
          a require.min.js:5
          completeLoad require.min.js:5
          onScriptLoad require.min.js:5
          (Async: EventListener.handleEvent)
          load require.min.js:5
          load require.min.js:5
          load require.min.js:5
          fetch require.min.js:5
          check require.min.js:5
          enable require.min.js:5
          enable require.min.js:5
          enable require.min.js:5
          bind require.min.js:5
          each require.min.js:5
          enable require.min.js:5
          enable require.min.js:5
          enable require.min.js:5
          bind require.min.js:5
          each require.min.js:5
          enable require.min.js:5
          init require.min.js:5
          s require.min.js:5
          (Async: setTimeout handler)
          nextTick require.min.js:5
          s require.min.js:5
          load polyfills.js:56
          execCb require.min.js:5
          check require.min.js:5
          enable require.min.js:5
          bind require.min.js:5
          emit require.min.js:5
          each require.min.js:5
          emit require.min.js:5
          check require.min.js:5
          enable require.min.js:5
          bind require.min.js:5
          emit require.min.js:5
          each require.min.js:5
          emit require.min.js:5
          check require.min.js:5
          enable require.min.js:5
          init require.min.js:5
          a require.min.js:5
          completeLoad require.min.js:5
          onScriptLoad require.min.js:5
          (Async: EventListener.handleEvent)
          load require.min.js:5
          load require.min.js:5
          load require.min.js:5
          fetch require.min.js:5
          check require.min.js:5
          enable require.min.js:5
          enable require.min.js:5
          enable require.min.js:5
      

      The log is :

      ["BODY",{"aria-multiline":"true","aria-readonly":"false","class":"skin-flamingo viewbody main wiki-xwiki space-Sandbox.TestRT cke_editable cke_editable_themed cke_contents_ltr cke_show_borders","contenteditable":"false","data-gramm":"false","data-lt-tmp-id":"lt-512568","id":"body","role":"textbox","spellcheck":"true"},[["P",{},["Hello",["BR",{},[]]]]]] 
      

      Here is a screenshot of what it looks like on the client 1 :

      And here is a screenshot on the client 2 :

      I'm also attaching the export of the two consoles, if need be.

      Environment : Debian Testing (bookworm) with Firefox 102.0
      Note : these tests were made locally on a jetty-hsqldb. I see similar errors on the XWiki SAS intranet which is running Apache2 HTTPd + Tomcat9

      Attachments

        Activity

          People

            mflorea Marius Dumitru Florea
            caubin Clément Aubin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: