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

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T15061, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 13061 - dumpHTML output have wrong relative paths to math, images, etc.
dumpHTML output have wrong relative paths to math, images, etc.
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Maintenance scripts (Other open bugs)
1.12.x
All All
: Normal enhancement with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  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: ---


Attachments

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.

Workaround:
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 https://bugzilla.wikimedia.org/show_bug.cgi?id=8147 with attached diff and download url.

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


Navigation
Links