https://bugzilla.wikimedia.org/show_bug.cgi?id=29219
Markus Krötzsch <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID --- Comment #1 from Markus Krötzsch <[email protected]> 2011-06-01 16:24:34 UTC --- This is not a bug. SMWDIProperty objects are initialized by a property "key". This key can have two forms: either it is the MediaWiki DBkey of a property page (for user-defined properties), or it is the key for a registered special property of SMW (a string starting with "_"). If you want to create SMWDIProperty objects from a user-provided label, or from a text that might be the (normalized) label of a special property (and you are not sure), then you should use the SMWDIProperty::newFromUserLabel(). Overall, you should always be able to generate a suitable SMWDIProperty for the store call in one line. SMWDIProperty could implement additional checks to throw exception when the "key" has a space in it, but this would take additional time that we might rather want to safe there. General clean-up and "best effort" input interpretation on the other hand is not meant to happen in DI classes but in the according DVs. Using a DV is usually the best solution when user input is processed (with all its possible messiness, e.g. leading spaces). -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
