Uploaded image for project: 'Confluence Cloud'
  1. Confluence Cloud
  2. CONFCLOUD-77843

TinyURL links are not updated after importing Site/Space into Confluence DC

    XMLWordPrintable

Details

    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

      1. Use TinyURL in your Confluence Cloud pages
      2. Generate a XML Export of your Site/Space in Confluence Cloud
      3. Importe the Site/Space into your Confluence DC environment
      4. 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:

      1. 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
        ...
        ...
        
      2. 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
      3. 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
        
      4. Once the file is correctly modified, you need to add the entities.xml file again to your Confluence Cloud export ZIP file. 
      5. Finally, import the space/site in your Confluence DC instance.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              d8a006ac9dc7 Iker Alonso
              Votes:
              2 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated: