Details
-
Bug
-
Resolution: Unresolved
-
Low
-
None
-
3
-
Severity 3 - Minor
-
Description
Issue Summary
After performing a Site/Space import in Confluence DC, the TinyURLs are not updated and therefore are still pointing to the Confluence Cloud environment.
Steps to Reproduce
- Use TinyURL in your Confluence Cloud pages
- Generate a XML Export of your Site/Space in Confluence Cloud
- Importe the Site/Space into your Confluence DC environment
- Click in any of the TinyURL links
Expected Results
The TinyURL links are updated correctly after importing them in Confluence DC, just as it happens with the non-TinyURL links referencing other Confluence pages.
Actual Results
The TinyURL links stays the same and cannot be used as it points to the original location in Confluence Cloud.
Workaround
The only way to fix these TinyURL link is to manually go through each one and change it to the correct TinyURL displayed in the Page information.
As TinyURL links are created based on the ContentID/PageID of the actual page in the source environment (Confluence Cloud, in this case), it is needed Confluence Cloud team to provide the redirected URLs for the Confluence DC administrators to replace them.
The steps to replace all the values will be similar to:
- Create a list of URLs in a TXT/CSV (using file MAPPINGS.csv for this example) in the following format:
http://tinyURL1 http://fullURL1 http://tinyURL2 http://fullURL2 http://tinyURL3 http://fullURL3 http://tinyURL4 http://fullURL4 ... ...
- Now, unzip the ZIP backup file you downloaded from Confluence Cloud. In the uncompressed content, you will have a file called entities.xml, where the URLs need to be replaced
- To replace the content, you can use a command similar to the following (command explained here):
while read n k; do sed -i "s,$n,$k,g" entities.xml; done < MAPPINGS.csv
- Once the file is correctly modified, you need to add the entities.xml file again to your Confluence Cloud export ZIP file.
- Finally, import the space/site in your Confluence DC instance.
Attachments
Issue Links
- is related to
-
CONFCLOUD-58896 TinyURL are not updated after import to another Cloud instance
- Closed
-
CONFSERVER-54759 Absolute Cloud URLs are not usable in Server when migrating with simple domain name replacement
- Gathering Impact
- mentioned in
-
Page Loading...