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

Sources for minified javascript from the static resources are not found by the browser developer tools

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 14.10.14, 15.8
    • None
    • Unknown

    Description

      How to reproduce:

      • on any page, load the browser developer tools
      • go in the debugger tab of the developer tools
      • explore the sources, for example for xwiki/resources/js/xwiki/meta.min.js
      • the original source is not found
      • in xwiki/resources/js/xwiki there is another subfolder js/xwiki which has a meta.js source displayed in it
      • when clicking on this meta.js file, the file is not found

      The same happens for all resources in xwiki/resources/uicomponents as well.

      meta.js is supposed to be the non-minified version of meta.min.js but the maps on the server are pointing to the wrong paths, for example the map for meta.min.js is:

      {
      "version":3,
      "file":"meta.min.js",
      "lineCount":3,
      "mappings":"...",
      "sources":["js/xwiki/meta.js"],
      "names":[...]
      }
      

      I assume sources should either be the absolute path /xwiki/resources/js/xwiki/meta.js or the relative path meta.js .

      Attachments

        Activity

          People

            Unassigned Unassigned
            lucaa Anca Luca
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: