Last modified: 2010-05-15 15:41:13 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 7946 - pipe trick [[Project:Xyz|]] vs. importTextFile.php
pipe trick [[Project:Xyz|]] vs. importTextFile.php
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
PC Linux
: Low minor (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
  Show dependency treegraph
Reported: 2006-11-16 15:49 UTC by Dan Jacobson
Modified: 2010-05-15 15:41 UTC (History)
0 users

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


Description Dan Jacobson 2006-11-16 15:49:43 UTC
Alas, months after using importTextFile.php to maintain a wiki does
one finally find out that e.g., [[Project:Xyz|]] will be a rendering
disaster, as it was expected to be first converted to
[[Project:Xyz|Xyz]] at some intermediate layer before getting stored
into the database.

If it weren't for this, one could maintain 100% back and forth
equality between files imported with importTextFile.php and back out
with action=raw.

So the answer seems to be interpret [[Project:Xyz|]] at XHTML
production time, and not edit time.

I'm not sure how many more of these little bombshells are waiting for

There is no way short of having importTextFile.php return non-zero to
the shell for me to know something is wrong.

No, I don't want to let something else edit my files for me, or have
to check out copies to edit from a black box.

You are 99% of the way to a great system that does not depend on an
interface and even blind users etc. users using pure batch job tools
can operate, if it weren't for this.
Comment 1 Brion Vibber 2006-11-16 15:56:19 UTC
I don't understand what you mean.

Do you mean that when you use importTextFile.php to create a page with a given text,
and you text is using the pipe trick ([[Project:Xyz|]] etc), that the input is not
transformed properly? (Should transform to [[Project:Xyz|Xyz]] by running the pre-
save transform at import time, presumably.)

If you do mean this, then I'm confused about your comments about action=raw exports;
since the transformation is done at save time any pages you've created in the wiki
will indeed round-trip properly since they're already transformed.
Comment 2 Rob Church 2006-12-02 22:16:52 UTC
Fixed in r18130.

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