Last modified: 2008-09-03 16:52:55 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 13061 - dumpHTML output have wrong relative paths to math, images, etc.
dumpHTML output have wrong relative paths to math, images, etc.
Product: MediaWiki
Classification: Unclassified
Maintenance scripts (Other open bugs)
All All
: Normal enhancement with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
  Show dependency treegraph
Reported: 2008-02-18 22:10 UTC by Geir Ove Myhr
Modified: 2008-09-03 16:52 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Description Geir Ove Myhr 2008-02-18 22:10:06 UTC
php dumpHTML.php -d /some/directory

produces directory content approximately like this
user@server:/some/directory$ ls
a  b  c  d  e  f  g  h  i  index.html  l  m  math  n  o  p  q  raw  s  t

The html files end up in places like /some/directory/s/a/n/Sandbox.html, but they refer to math files in "../../../../math" which would mean /some/math, instead of "../../../math" which translates to /some/directory/math. As a result no advanced math formulas show up in the exported html.

If --image-snapshot is used, and the fix from bug 12122 is used so that the images get relative paths, the relative paths of images have the same problem as the math, only that the directory name is upload. Curiously, the relative paths to files in the raw directory are correct ("../../../raw").

Also, the html files refer to CSS and images in "../../../../skins", but the skins are not copied to the new directory.

php dumpHTML.php -d /some/directory/wiki
cd /some/directory/wiki
mv math ..
cp -r <mwdir>/skins ..
Comment 1 T. Gries 2008-09-03 16:52:20 UTC
I think this is solved in version v2.11 which creates MD5-hashed filenames for everything (articles, images, thumbnail images, media files). Dumps can be safely written to CD/DVD-ROMS see with attached diff and download url.

Note You need to log in before you can comment on or make changes to this bug.