Details
-
Bug
-
Resolution: Fixed
-
Blocker
-
14.1-rc-1
-
None
-
Windows 11 Pro 64 bit, Firefox 97, Chrome 99, Edge 99, using a local instance of XWiki 14.1 on PostgreSQL 14, Tomcat 9.0.59, Docker
-
Unknown
-
N/A
-
N/A
-
Description
STEPS TO REPRODUCE
- Open a fresh instance of XWiki (with Chrome or Edge, the issue reproduces also on Firefox but sometimes with no errors in browser console)
- Create a page (e.g. Pag1)
- Click on another page (e.g Sandbox) and observe the browser console
- Upload an attachment to a page (e.g. Pag2)
- Click on that page from Navigation Panel (or click on another page and then click back to the page with attachment) and observe the browser console
EXPECTED RESULTS
When accessing the pages, the Comment tab is selected and its content is displayed by default. No error are displayed in browser's console.
ACTUAL RESULTS
Sometimes, when landing on respective pages, no tab is selected and no tab content is displayed (until the page is refreshed).
The following error is displayed in browser console:
Uncaught TypeError: element.dispatchEvent is not a function at fireEvent_DOM (prototype.js?r=1:7141:13) at fire (prototype.js?r=1:7130:17) at HTMLDocument._methodized [as fire] (prototype.js?r=1:456:23) at HTMLDocument.fireContentLoadedEvent (prototype.js?r=1:7317:14) fireEvent_DOM @ prototype.js?r=1:7141 fire @ prototype.js?r=1:7130 _methodized @ prototype.js?r=1:456 fireContentLoadedEvent @ prototype.js?r=1:7317
The issue occurs most often after creating a page and clicking on another page and could be sometimes reproduced after just opening the XWiki instance and just clicking on Sandbox from Applications Panel (without creating anything).
Also, sometimes after uploading an attachment on a page and navigating away and then returning, the following error is displayed in JS console (I found that this is a bit harder to reproduce):
Uncaught TypeError: element.attachEvent is not a function at observeCustomEvent (prototype.js?r=1:7023:15) at observe (prototype.js?r=1:7003:7) at HTMLDocument._methodized [as observe] (prototype.js?r=1:456:23) at searchSuggest.min.js?cache-version=1646063324000&h=1255116547:9:15 at searchSuggest.min.js?cache-version=1646063324000&h=1255116547:9:55 observeCustomEvent @ prototype.js?r=1:7023 observe @ prototype.js?r=1:7003 _methodized @ prototype.js?r=1:456 (anonymous) @ searchSuggest.min.js?cache-version=1646063324000&h=1255116547:9 (anonymous) @ searchSuggest.min.js?cache-version=1646063324000&h=1255116547:9
What is difficult is that I couldn't find a direct pattern to reproduce these errors (I've sometimes reproduced them after lots of clicks to navigate back and fourth to other wiki pages, other times reproduced very fast) and they seem to be most visible in Chrome and Edge.
It is to be mentioned that the issue reproduces also on XWiki 14.1, but I couldn't reproduce it on XWiki 14.0.
Attachments
Issue Links
- is related to
-
XWIKI-14928 Upgrade to jQuery 3.6.0
- Closed