Last modified: 2010-05-15 15:37:27 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 T6835, the corresponding Phabricator task for complete and up-to-date bug report information.
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