Details
-
Bug
-
Resolution: Unresolved
-
Medium
-
None
-
6.6.1, 7.4.0
-
36
-
Severity 3 - Minor
-
2
-
Description
Summary
When migrating from Confluence Cloud to Confluence Server, if there are absolute URLs used in page links these are no usable in Confluence Server.
Usually we follow
to change the domain name, however the URLs are now completely different and there is no 1-to-1 mapping.
Steps to Reproduce
- Set up a Confluence Cloud environment
- Create 2 pages, PageA and PageB with some dummy content
- Edit PageA, highlight some text and press Ctrl+K
- Choose Web Link and for Address, use the full URL for PageB
- Edit PageB, highlight some text and press Ctrl+K
- Choose Web Link and for Address, use the full URL for PageA
- Go to Backup Manager wiki/plugins/servlet/ondemandbackupmanager/admin and click Create Backup
- Download Site_Backup.zip
- Follow the steps in How Do I replace all 'hard' links to my old Base URL (note, this KB has been updated to reflect this bug) to change all the domain names from mycompany.atlassian.net to confluence.mycompany.com
- Set up Confluence 6.6.1 and on the page Load Content select Restore From Backup
- Choose the file Site_Backup.zip and proceed to set up Confluence as usual
Remember to start Confluence with
Expected Results
The URLs for the links between pages work as expected.
Actual Results
Confluence Cloud links are not 1-to-1 mappable to Confluence Server.
Notes
URLs in Confluence Cloud have the format of
Whereas the similar link in Confluence Server would be either
- http://confluence.mycompany.com/display/BUG/PageA
- http://confluence.mycompany.com/pages/viewpage.action?pageId=229377
Workaround
The contentid is in the Cloud Confluence URL, so that can be used to map to a Confluence Server URL with /pages/viewpage.action?pageId=
For example, a regex to match all URLs would be
mycompany.atlassian.net/wiki/spaces/[A-Z0-9]+/pages/([0-9]+)/[A-Za-z0-9+.]+
and replace with (depending on regex engine)
confluence.mycompany.com/pages/viewpage.action?pageId=\1
For example if you have
Cloud URL | mycompany.atlassian.com |
Server URL | confluence.mycompany.com |
You can use this sed script on entities.xml from the export
sed -r -e 's/mycompany\.atlassian\.net\/wiki\/spaces\/[A-Z0-9]+\/pages\/([0-9]+)\/[A-Za-z0-9+.]+/confluence.mycompany.com\/pages\/viewpage.action?pageId=\1/g' entities.xml
Attachments
Issue Links
- is related to
-
CONFCLOUD-58441 Internal Links with PageID in the URL's does not work after Cloud to Server Migration
- Closed
- relates to
-
CONFCLOUD-77843 TinyURL links are not updated after importing Site/Space into Confluence DC
- Gathering Impact
- mentioned in
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...