Hi everyone !
I am a junior Mulesoft Developer,
In a project context I have to develop an API that makes GET requests (Get pages in space, I use the v2 version of the Confluence API), and POST them into another space.
The Mule app works fine, except that I cannot get the right URLs of the images, instead I just get some special tags.
For example if I type the following url https:/{host}/wiki/api/v2/spaces/131074/pages?body-format=storage
For the page 4096012, I get
I also can obtain a webuiLink and a downloadLink using a specific endpoint, but they lead to a 404
I remind you that I want a copy/paste of some space to another with my Mule app INCLUDING images.
If a inspect the image on my confluence space I obtain the following structure :
blob:https://{host}/{UUID}c#media-blob-url=true&id={fileId}&contentId={collectionName}&contextId={container.id}&image%2Fpng&name={image.name}&size={fileSize}&width={img.width(on_download_url)}&height={img.height(on_download_url)}&alt={image.name}
But there is no way to obtain the UUID either. Some people suggest me to use Selenium, to dynamically get the true URL, but is there a simpler way to do that ?
This specific point seems to be an obstacle course for a simple API, I would really appreciate some help here !
Thank you for reading.
Hi @Romain Claudot and welcome to the Community
I wonder if you're not running into permissions limits on Confluence Free.
I'm going purely by your question's title "Migrate some space into another (images URL issues)" but I encountered permissions issues when I copied (synced) content from space A to space B.
Some apps could not 'touch' images (and other elements) in space B for further processing.
The images etc. would render OK in space B, but were technically a property of space A, thus out of the app's permissions in space B.
Which brings me to the theory of permission issues.
Good morning @Kristian Klima what would be the way to allow permissions ? For a test purpose, we are authentified in space A and B. The images are broken, they don't render ok in space B.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.