-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Low
-
None
-
Affects Version/s: 7.4.11
-
Component/s: Server - Installer / Setup
-
None
-
2
-
Severity 3 - Minor
Problem
Error 404 when downloading a page that was exported as PDF, Word, etc.
Environment
Operational System: Windows
.
Steps to Reproduce
Install Confluence on Windows Server and set Confluence Home as root directory. Example: C:\, D:\, E:\,...
Create a Page
Export page as PDF
Expected Results
File is downloaded
Actual Results
Error 404
Download URL should be: http://host/download/temp/pdfexport-20211209-091221-1301-5/PageName-091221-1301-6.pdf?contentType=application/pdf
Using the configuration as bellow, Confluence is removing t from temp and this is the download URL: http://host/download/emp/pdfexport-20211209-091221-1301-5/PageName-091221-1301-6.pdf?contentType=application/pdf
During installation when you select a root directory, confluence.home is set at confluence-init.properties for example:
confluence.home = E:\\
In confluence-init.properties there is a recommendation to not use backslashes:
###########################
# Note for Windows Users #
###########################
#
# Each backslash in your path must be written as a forward slash.
# - For example:
# c:\confluence\data
#
# should be written as:
#
# c:/confluence/data
Even if you use forward slash you will see the error.
confluence.home = E:/
Workaround
- Create a subfolder for Confluence Home
mkdir e:\confluence-home
- Stop Confluence
- Edit your confluence-init.properties. Path on your environment is E:\Confluence\confluence\WEB-INF\classes\confluence-init.properties
- Adjust confluence.home:
C:/confluence-Home
- Adjust confluence.home:
- Save file
- Move all folders from Home to new Home subfolder:
move analytics-logs e:\confluence-home\ move attachments e:\confluence-home\ move backups e:\confluence-home\ move bundled-plugins e:\confluence-home\ move confluence.cfg.xml e:\confluence-home\ move imgEffects e:\confluence-home\ move index e:\confluence-home\ move journal e:\confluence-home\ move lock e:\confluence-home\ move logs e:\confluence-home\ move plugins-cache e:\confluence-home\ move plugins-osgi-cache e:\confluence-home\ move plugins-temp e:\confluence-home\ move shared-home e:\confluence-home\ move synchrony-args.properties e:\confluence-home\ move temp e:\confluence-home\ move viewfile e:\confluence-home\ move webresource-temp e:\confluence-home\
- Start Confluence
Suggestion
Using installer create a validation to avoid user to select root directory, as they can't select Home to be a subfolder of Confluence install folder.