-
Bug
-
Resolution: Unresolved
-
Low
-
None
-
8.4.1
-
None
-
3
-
Severity 3 - Minor
-
7
-
Issue Summary
This is reproducible in Data Center: Yes
Steps to Reproduce
- Create a space/site export from any confluence version, to import it to Confluence 8.4.1
- Place the space export in <confluence-home>/shared/restore/space (or) site export in - <confluence-home>/shared/restore/site
- Use cURL -
cURL -D- -u <user_name>:<password> -X POST -H "X-Atlassian-Token: nocheck" -F "file=@<file_name>.zip" http://<base_url>/rest/api/backup-restore/restore/space/upload
Ref : https://docs.atlassian.com/ConfluenceServer/rest/8.4.1/
Expected Results
- Site/Space should be imported into the destination Confluence
Actual Results
{"statusCode":400,"data":{"authorized":false,"valid":true,"allowedInReadOnlyMode":true,"errors":[],"successful":false},"message":"The uploaded file should be a valid zip file.","reason":"Bad Request"}%
From conf_access_*.log
[17/Aug/2023:07:07:34 +0530] admin http-nio-6841-exec-3 127.0.0.1 POST /c841/rest/api/backup-restore/restore/site/upload HTTP/1.1 400 143ms 211 - curl/8.1.2
Workaround
Add ;type=application/zip after the filename:
curl -k -D- -u <user_name>:<password> -X POST -H "X-Atlassian-Token: nocheck" -F "file=@myfile.zip;type=application/zip" "http://<base_url>/rest/api/backup-restore/restore/space/upload"
- is related to
-
CONFSERVER-91266 Restoring site/space backup from local drive on Windows client machine fails with 400 bad request
- Closed