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

PDF, Word and XML exports fail with absolute temp directory path in confluence.cfg.xml

      Confluence cannot resolve the file path of the 'temp' directory in the home folder properly if it is modified in the confluence.cfg.xml.
      This leads to a 403 - Forbidden - page in Confluence when attempting a PDF Export.

      E.g. Default value:
      <property name="webwork.multipart.saveDir">${confluenceHome}/temp</property>

      Changed value:
      <property name="webwork.multipart.saveDir">/home/foo/confluence-temp/test</property>

      The result is this URL and 403 page shown:

      http://localhost:8080/download//home/foo/confluence-temp/test/export_06192007_133711/ds-32787-20070619-13_37_11.pdf
      

      Checking the proper path with HttpLiveHeaders, the correct path should be something like this:

      http://localhost:8080/download/temp/export_06192007_133711/ds-32787-20070619-13_37_11.pdf

      Confluence should be able to update the path with this change. Consequently, it can be fixed by reverting the above webwork.multipart.saveDir back to ${confluenceHome}/temp.

      This issue can be reproduced by using the symbolic link as well.

      Workaround solution:
      On Linux, you can use the file system bind via "fstab" to bind the temp folder with another temp folder from another file system.

            [CONFSERVER-8730] PDF, Word and XML exports fail with absolute temp directory path in confluence.cfg.xml

            James Whitehead made changes -
            Status Original: Closed [ 6 ] New: Closed [ 6 ]
            Sunny Wu made changes -
            Remote Link New: This issue links to "Page (Extranet)" [ 658252 ]
            James Whitehead made changes -
            Resolution New: Fixed [ 1 ]
            Status Original: Waiting for Release [ 12075 ] New: Closed [ 6 ]
            SET Analytics Bot made changes -
            UIS Original: 15 New: 16
            Richard Atkins made changes -
            Fix Version/s Original: 7.20.0 [ 101390 ]
            Fix Version/s New: 7.18.2 [ 101802 ]
            Fix Version/s New: 7.17.5 [ 101801 ]
            Fix Version/s New: 7.19.0 [ 101690 ]
            Kenny MacLeod made changes -
            Remote Link New: This issue links to "R7.17 P2. Blockers › Tier 2 Plugins against Confluence latest - Phoenix › issue-717-CONFSERVER-8730-backport (server-syd-bamboo)" [ 653738 ]
            Kenny MacLeod made changes -
            Remote Link New: This issue links to "R7.17 P1. Baseline › Unit, Integration, CTK Tests › issue-717-CONFSERVER-8730-backport (server-syd-bamboo)" [ 653737 ]
            Kenny MacLeod made changes -
            Remote Link New: This issue links to "R7.17 P1. Baseline › Data Center Tests, Postgres 14.x, Tomcat 9, Java 11 › issue-717-CONFSERVER-8730-backport (server-syd-bamboo)" [ 653824 ]
            Kenny MacLeod made changes -
            Remote Link New: This issue links to "R7.17 P1. Baseline › Spring-wired Integration Tests › issue-717-CONFSERVER-8730-backport (server-syd-bamboo)" [ 653639 ]
            Kenny MacLeod made changes -
            Remote Link New: This issue links to "R7.17 P1. Performance › Page Weight Ratchet Build › issue-717-CONFSERVER-8730-backport (server-syd-bamboo)" [ 653823 ]

              8b5c2ab424ac Jing Zheng
              ktran Kevin Tran [Atlassian]
              Affected customers:
              29 This affects my team
              Watchers:
              45 Start watching this issue

                Created:
                Updated:
                Resolved: