Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-32898

Word Viewfile macro breaks "browse for files" to upload and causes other page content to be rendered as links

    XMLWordPrintable

Details

    • Bug
    • Resolution: Obsolete
    • Low
    • 5.8
    • 5.4.3
    • None
    • Reproed on both:

      • Firefox 27.0.1 on OS X 10.9.2
      • IE11 on Windows 8.1

    Description

      In the attached screenshot 10.42.15, notice that the entire contents of the Attachments macro is underlined. This seems to happen if a Viewfile macro for a Word document is placed on the same page.

      In addition, the "browse for files" link to upload a file in the Attachments macro no longer works. The file does seem to get uploaded, but the spinner remains on the page forever and the page never refreshes.

      To reproduce:

      1. Create a new page in a space
      2. Add the testdoc.docx attachment (included here just in case, although it seems that any Word doc will do).
      3. Edit the page again to add a viewfile macro.
      4. Add an Attachments macro (or anything else) after the viewfile macro.
      5. Notice that all of the text on the page is turned into a link with hover-underlines (see the attached underline.mov for an example).

      It appears that the Word Viewfile macro somehow causes a new "<a name="_GoBack">' tag to be inserted around content on the page, including the attachments macro, even though that content resides outside of the frame of the viewfile macro. See screenshot 10.40.33.

      As mentioned above, this also breaks the "browse for files" to upload feature in the Attachments macro. After attempting the upload, I get the following errors in the JS console (from com.atlassian.auiplugin:aui-header):

      TypeError: menuItems[i] is undefined
      remaining -= menuItems[i].itemWidth;
      batch.js (line 17127)
      
      TypeError: menuItems[i] is undefined
      remaining -= menuItems[i].itemWidth;
      batch.js (line 17127)
      

      Attachments

        1. Screen Shot 2014-03-11 at 10.40.33 AM.png
          Screen Shot 2014-03-11 at 10.40.33 AM.png
          496 kB
        2. Screen Shot 2014-03-11 at 10.42.15 AM.png
          Screen Shot 2014-03-11 at 10.42.15 AM.png
          164 kB
        3. testdoc.docx
          13 kB
        4. underline.mov
          2.46 MB

        Issue Links

          Activity

            People

              Unassigned Unassigned
              7c60ab039b09 Scott Dudley [Inactive]
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: