hallowelt / migrate-confluence

Tool to migrate content from Confluence export files into a MediaWiki compatible import source
GNU General Public License v3.0
35 stars 8 forks source link

Images with URLs to actual attachment but without attachment ref are not converted #53

Closed osnard closed 2 years ago

osnard commented 2 years ago

Sometimes images are not embedded with an "attachment ref" but with a "url"

<ac:image ac:height="150">
    <ri:url
        ri:value="https://server/confluence/download/attachments/152609735/image2021-8-17_10-15-14.png?version=1&amp;modificationDate=1914846492120&amp;api=v2"
    />
</ac:image>

While these are usually external URLs, they can also be links to attachments. Those URLs can be analysed and the proper File:-link can be constructed.

osnard commented 2 years ago

Invalid, as discussed in https://github.com/hallowelt/migrate-confluence/pull/57