Page MenuHomePhabricator

inconsistent namespace capitalisation handling breaks inline queries
Closed, InvalidPublic

Description

Author: joel

Description:
A page type property set like so:

[[image::image:foo.jpg]]

will get its capitalisation partially converted, yielding a property named Image (note correct case) that points to the page image:Foo.jpg (note correct case of Foo.jpg and incorrect case of the Image: namespace).

When included in the results from an inline query {{#ask: ... |format=table}} the image will not be rendered. If I go to the trouble of correcting the namespace case manually, then the image will be rendered, but I'd rather not (babysitting users is tedious). I expect semantic mediawiki to autocorrect the namespace case for me, if only for reasons of consistency since it autocorrects the 2 other instances of incorrect capitalisation in this case.

There is also an issue with queries on the form {{#ask: [[category:foo]]}, which fail only because the "Category:" namespace is wrongly capitalised. However if a page type property has the same error, e.g. {{#ask: [[prop::category:foo]]}}, then the query works. Furthermore, it works regardless of namespace capitalisation, incuding allcaps {{#ask: [[prop::CATEGORY:foo]]}}.

I expect semantic mediawiki to use e.g. {{ucfirst: ... }} for namespaces.


Version: unspecified
Severity: normal

Details

Reference
bz29536

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 21 2014, 11:30 PM
bzimport set Reference to bz29536.
mwjames subscribed.

Can not be observed with the current master.