Last modified: 2010-05-15 15:41:13 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 T9946, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 7946 - pipe trick [[Project:Xyz|]] vs. importTextFile.php
pipe trick [[Project:Xyz|]] vs. importTextFile.php
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
1.7.x
PC Linux
: Low minor (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  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: ---


Attachments

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
me.

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.


Navigation
Links