Thread:Project:Support desk/Uploaded documents not referenced correctly with dumpHTML

Hello,

We are referencing uploaded files (pdf documents) in our wiki using the syntax: Link: [[Media:mydocument.pdf]]

The document is correctly displayed in the browser with the appropriate url, for example: http://x.x.x.x/mediawiki/images/0/07/mydocument.pdf

In mediawiki this document is stored in: /usr/local/www/mediawiki/images/archive/0/07/mydocument.pdf

When dumping out the wiki using the command: /usr/local/bin/php /usr/local/www/mediawiki/extensions/DumpHTML/dumpHTML.php -d /home/backup/wikidump -k monobook --image-snapshot --force-copy

you'll get an error, because the document reference is wrong (it's referenced as C:\wikidump\images\0\07\mydocument.pdf) The correct reference is: C:\wikidump\images\images\0\2F\0\0\07\mydocument.pdf

The good thing in mediawiki is that you can register a new version of the uploaded file without having to change the link ([[Media:mydocument.pdf]])

However, dumpHTML does not handle this feature. Is there any workaround for dumpHTML ?

Any help would be appreciated

Mediawiki: 1.19.3 Latest DumpHTML