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

Attachment web resources are loaded even if they are not activated

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 2.3 M1
    • Attachments
    • None
    • Unknown

    Description

      Reproduction steps

      1. Make sure annotation are not enabled by default.
      2. Visit a page with 0 annotation
      3. Check the networks tab of your browser debugger

      Expected

      The network tag contains only small pieces of javascript/css required to:

      • open the annotation setting (in tmMoreActions droppdown
      • listen for the annotation shortcuts
      • open the annotations from the comment panel

      Actual

      All the javascript/css for the annotations is loaded, including everything required to manipulate annotations, even though they are likely to be useless by default.
      In addition, annotations javascript/css is even loaded for users without edit rights on the current document.

      Attachments

        Activity

          People

            Unassigned Unassigned
            mleduc Manuel Leduc
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: