Last modified: 2010-05-15 15:48:21 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 T10975, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 8975 - MediaWiki:* vs. importTextFile.php vs. update.php
MediaWiki:* vs. importTextFile.php vs. update.php
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
1.9.x
PC Linux
: Low minor (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-02-13 20:46 UTC by Dan Jacobson
Modified: 2010-05-15 15:48 UTC (History)
0 users

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


Attachments

Description Dan Jacobson 2007-02-13 20:46:10 UTC
Gentlemen, I have determined that if one uses importTextFile.php to
write MediaWiki:* items, then one must be prepared to do so again
after each run of update.php.

If one wishes those items to stick, one had better hunker down with the
browser and edit them by hand, each one.

Go ahead, run the below, note the effects, then run update.php. The
effects are then gone.

t=/tmp/n
echo -n - > $t
php importTextFile.php --title MediaWiki:Privacy $t
cat > $t <<EOF
* navigation
** mainpage|mainpage
** portal-url|portal
** currentevents-url|currentevents
** recentchanges-url|recentchanges
** randompage-url|randompage
** helppage|help
EOF
php importTextFile.php --title MediaWiki:Sidebar $t

Too bad there's no way to set them via LocalSettings.php.
No URL as this wiki is offline.
Comment 1 Rob Church 2007-02-13 21:50:02 UTC
Is the edit being attributed to "MediaWiki default"? If so, then update.php will
delete it as part of the message cache alterations shipped from 1.9.0 onwards.
In this case, use the --user option passed to the import script to attribute the
edit to someone else.
Comment 2 Brion Vibber 2007-02-14 00:46:04 UTC
It would probably be wise not to use 'MediaWiki default' as the default username
for importTextFile, since that's intended to be used for things created by the
installer (and thus which can be udpated or removed with impunity).
Comment 3 Rob Church 2007-03-27 20:53:49 UTC
Fixed in r20751.

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


Navigation
Links