Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Dokuwiki migration to Confluence 6.12

misha December 6, 2018

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

1 answer

0 votes
Bill Bailey
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 7, 2018

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!

misha December 10, 2018

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!

jira guy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 15, 2019

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?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events