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

Uncaught SyntaxError: Unexpected token ':' in JS console when uploading any attachment

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 14.10, 16.10.10, 17.4.3
    • Attachments
    • None
    • Windows 11 Pro, Edge 138, using an instance of XWiki 17.4.3 on MariaDB 11.8, Jetty 12.0
    • Unknown

    Description

      Steps to reproduce:

      1. Go to attachment tab in any page
      2. Open JS Console
      3. Attach any file (e.g. .png)

      Expected results:

      The JS Console does not show any errors.

      Actual results:

      The JS Console shows the following error:

      VM15804:2 Uncaught SyntaxError: Unexpected token ':'  at prototype.js?r=1:640:69  at Array.map (<anonymous>)  at Array.collect (prototype.js?r=1:1270:23)  at String.evalScripts (prototype.js?r=1:640:34)  at prototype.js?r=1:434:23
      | |(anonymous)|@|prototype.js?r=1:640|
      | |(anonymous)|@|prototype.js?r=1:1270|
      | |evalScripts|@|prototype.js?r=1:640|
      | |(anonymous)|@|prototype.js?r=1:434|
      | |setTimeout| | |
      | |delay|@|prototype.js?r=1:433|
      | |defer|@|prototype.js?r=1:440|
      | |update|@|prototype.js?r=1:2281|
      | |_methodized|@|prototype.js?r=1:456|
      | |onRequestDone|@|upload.js:346|
      | |(anonymous)|@|prototype.js?r=1:417|
      | |XMLHttpRequest.send| | |
      | |startUploading|@|upload.js:255|
      | |onUploadNextFile|@|upload.js:574|
      | |(anonymous)|@|prototype.js?r=1:417|
      | |(anonymous)|@|prototype.js?r=1:7282|
      | |fireEvent_DOM|@|prototype.js?r=1:7141|
      | |fire|@|prototype.js?r=1:7130|
      | |k|@|eventsBridge.js:61|
      | |onFilesSelected|@|upload.js:565|
      | |(anonymous)|@|prototype.js?r=1:417|
      | |(anonymous)|@|prototype.js?r=1:7266| 

      Attachments

        Activity

          People

            Unassigned Unassigned
            atarata Andreea Tarata
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: