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

Confluence Questions in spaces doesn't save and show images

XMLWordPrintable

      Summary

      Images attached to initial Confluence Questions are not displayed in another Browser session.

       

      Testing Environment

      Confluence 7.9.0 with Confluence Question plugin v2.7.25

      (Also tested this Confluence v7.4.8)
       

      Steps to Reproduce

      Case 1

      1. Go to a space
      2. Click question icon on sidebar
      3. Ask a question
      4. DnD an image
      5. Add a topic and save
      6. Clear browser cache and reload the page (CMD + SHIFT + R on Mac) 

      Case 2

      1. Go to CQ dashboard
      2. Ask a question 
      3. Choose a space
      4. Upload an image
      5. Add a topic and save
      6. Clear browser cache and reload the page (CMD + SHIFT + R on Mac) 

      Expected Result

      The image show up correctly as the user uploaded.


       

      Actual Result

      The image doesn't appear and the browser shows a resource not found error.

      Diagnosis:

      1. Check the URL for the Confluence Question, e.g.:

      http://localhost:8090/questions/3407895/how-do-i-reset-the-wifi
      

      2. Right click on the broken image of the initial Confluence Question post and the ID after the attachments does not match to the above Question URL, e.g. image is linking to 3407893 and not the above 3407895:

      http://localhost:8090/download/attachments/3407893/jstack_analysis2.png?version=1&modificationDate=1520827628523&api=v2
      

      Workaround - for New Questions

      The following procedure is not a scalable workaround, but works.

      1. Create a new question and save it without any images in it.
      2. Browse to that question again and edit it.
      3. Upload the images required in the question and save it.

      Video attached on how to reproduce the issue:
      Screen Recording 2021-06-02 at 3.07.40 pm.mov

       

      Resolution:

      The fixes for LTS versions have been released. Upgrading both Confluence and Confluence Question Plugin to the below versions to get attachments working properly.

      • Confluence 7.4.17 + CQ 3.0.5
      • Confluence 7.13.7 + CQ 3.0.5

      Due to Marketplace limitation, we cannot add LTS minor versions into compatibility range. Even though the Marketplace plugin page says CQ 3.0.5 only supports 7.16.3 above, please be aware that 3.0.5 has been fully tested with 7.4.17 and 7.13.7. The jar file could be downloaded and installed manually through Marketplace.

              zxu2@atlassian.com Zac Xu
              lwang3@atlassian.com Lei Wang
              Votes:
              4 Vote for this issue
              Watchers:
              15 Start watching this issue

                Created:
                Updated:
                Resolved: