I'm working with migration Dokuwiki to Confluence 6.12. I'm using for this purpose script -
https://github.com/dmitrii-ageev/dokuwiki-to-confluence
It partly working with our dokuwiki , but now, we have problem with import pdf, doc, xls files. After calling, for example, convertWikiToStorageFormat(token, content) with input "!test1.pdf", output is -
------------
<ac:structured-macro ac:macro-id="9b1fe241-5df9-43f9-8b95-88636683ef22" ac:name="unmigrated-wiki-markup" ac:schema-version="1">
<ac:plain-text-body><![CDATA[!test1.pdf!]]></ac:plain-text-body>
</ac:structured-macro>
----------
and Confluence6.12 not correct rendern this content, it need code , like this-
--------------------
<ac:structured-macro ac:macro-id="c2c10b51-3fe8-4268-a15d-245182d62eae" ac:name="view-file" ac:schema-version="1">
<ac:parameter ac:name="name">
<ri:attachment ri:filename="test1.pdf"/>
</ac:parameter>
<ac:parameter ac:name="height">250</ac:parameter>
</ac:structured-macro>
-------------------
What I doing wrong? Which is best practice for this migration?
thank you in advance
I am not sure what the exact answer is but the call you are making convertWikiToStorageFormat(token, content) is not for attachments, but for converting page content. The script was developed some time ago, and originally just output to wiki markup (old Confluence format), the method above converts that wiki markup to the newer storage format.
So you should not be passing attachments to that method. Unfortunately I can;t tell you exactly what you need to do, but give you some idea of why you are seeing the error.
Good luck!
I need import dokuwiki pages which contain pdf, doc, xls files to confluence wiki 6.12.
For examle , I have such dokuwiki page -
====== mobile office ======
{{:world:share:network:test1.pdf}}
{{:world:share:network:test1.docx}}
{{:world:share:network:test1.xlsx}}
====== mobile office end======
How I can programmatically do that?
thank you!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Did you try using UWC by app fusion? I was able to import attachments with the following.
https://migrations.atlassian.net/wiki/spaces/UWC/pages/1015845/UWC+DokuWiki+Notes
Also, were you able to migrate using the above tool?
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.