It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Confluence copy page with internal image lead to absolute url being used

S. Piller Jan 10, 2017

Hi Atlassian,

I guess I've found a minor - but yet annoying - bug in Confluence. The use case is the following:

  • you have a page with at least 1 uploaded image in it.
  • you made at least one copy of the original page
  • and then you changed your hostname from http://oldhostname to http://newhostname 

What happens is that the copied page refer to the absolute url of the original image. You can see in your browser debugger requests to http://oldhostname/confluence...

For me, the bug is that Confluence does not recognize its own resources when copying a page, and refer to them with an absolute url. That leads to inconsistencies when for example, you migrate your content from an instance to another, or put a backup of production data in your integration environment. Request are still made to the production host.

Keep using the old DNS alias, pointing to the new physical host, helps only if the copied pages have no access restrictions. It there is, then the image fails to load (you take a redirect), since you need to authenticate under http://oldhostname to access it.

A request like "UPDATE BODYCONTENT SET BODY = REPLACE(BODY, 'http://oldhostname', 'http://newhostname') WHERE BODY LIKE '%http://oldhostname%'" + a reindex seems to fix the issue, but hum... nobody knows if it does not corrupt the content (ie. do we really want to change the old host in every occurences?) and I don't feel comfortable running it...

Is it already known, or should I open a bug report somewhere ?

 

Thanks!

 

2 answers

1 accepted

0 votes
Answer accepted
Rob Woodgate Jan 10, 2017

Hi,

That definitely sounds like a bug.  Search for it at https://jira.atlassian.com and if you can't find it add it as a bug.

S. Piller Jan 10, 2017

Oki smile ticket is in progress

 

Thank you!

0 votes
Monique Khairuliana Atlassian Team Jan 23, 2017

Hi S. Piller and everyone smile

This is the only similar scenario that's currently known to be happening in Confluence https://jira.atlassian.com/browse/CONF-37772

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Confluence

6 Awesome Ways to Apply Trello, JIRA and Confluence to your Project

I attended  Atlassian Summit 2019  and learned a lot from the presenters, attendees and knowledgeable Atlassian product managers. The presentations I attended focused on applying Agile, pla...

2,110 views 11 27
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you