Last modified: 2010-05-15 15:37:27 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 4835 - mwdumper documentation for --filter is incorrect for namespaces
mwdumper documentation for --filter is incorrect for namespaces
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
1.5.x
PC Windows XP
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-02-02 11:50 UTC by Jason Armistead
Modified: 2010-05-15 15:37 UTC (History)
0 users

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


Attachments

Description Jason Armistead 2006-02-02 11:50:11 UTC
If I run the following command:

java -jar mwdumper.jar --output=file:temp10.xml --format=xml --filter=namespace:10 metawiki-
20060202-pages-meta-current.xml

Then the resulting XML file, temp10.xml, actually INCLUDES all articles from namespace 10 
(templates)

Yet the README.txt file for mwdumper

http://download.wikimedia.org/tools/README.txt

clearly says

  --filter=namespace:[!]<NS_KEY,NS_OTHERKEY,100,...>
      Excludes all pages in (or not in, with "!") the given namespaces.
      You can use the NS_* constant names or the raw numeric keys.

i.e. it should EXCLUDE all namespace 10 (Template) pages.

Seems like the README.txt has it the wrong way, and it should instead read:

  --filter=namespace:[!]<NS_KEY,NS_OTHERKEY,100,...>
      Includes all pages in (or not in, with "!") the given namespaces.
      You can use the NS_* constant names or the raw numeric keys.

At least, then it would line up with the observed behaviour.

According to my Java VM, my Windows XP SP2 PC is running

java -version

java version "1.5.0_04"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_04-b05)
Java HotSpot(TM) Client VM (build 1.5.0_04-b05, mixed mode)

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


Navigation
Links