Last modified: 2008-06-12 10:52:21 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 11059 - inconsistent behavior if a property name includes a namespace
inconsistent behavior if a property name includes a namespace
Product: MediaWiki extensions
Classification: Unclassified
Semantic MediaWiki (Other open bugs)
All All
: Low minor (vote)
: ---
Assigned To: Markus Krötzsch
Depends on:
  Show dependency treegraph
Reported: 2007-08-25 05:00 UTC by S Page
Modified: 2008-06-12 10:52 UTC (History)
0 users

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


Description S Page 2007-08-25 05:00:27 UTC
User reported on the mailing list

that two relations Rel1 and A:Rel1 on the same page collapse into one relation, "Rel1".

I was able to reproduce this by creating a property with the namespace "Help:" in its name.
 [[Test relation::Sandbox2a]] [[MyPrefix:Test relation::Sandbox2b]] [[Help:Test relation::Sandbox2c]

The factbox lists the property "Test relation" with the values Sandbox2a and Sandbox2c.  (The property name "MyPrefix: Test relation" has no problem because it's just a name with a colon in it.)

Expected results:
I'm not sure why the "Help" namespace vanished.  But it seems insane to allow a property name to include a namespace name.  So rather than show the confusing
  Help:Test relation    sandbox2
in the factbox when the link actually goes to a property, it would be better to warn the user
  Don't use namespace ("Help") in a property's name.
Comment 1 Markus Krötzsch 2008-06-12 10:52:21 UTC
This is fixed now, though it is still not recommended to label properties like that. Anyway, similar problems are likely to occur again: the troble is that we often use MediaWiki's Title::newFromText to process user input. This method takes a namespace as a parameter, but this namespace is the default only, not an overwrite. So as long as titles have no namespaces, the default works as expected, but if title strings bring their own namespace, it overrides the default. The only workaround is to fetch the local label of a desired namespace and to prepend it manually.

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