Last modified: 2014-11-01 22:05:13 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 T45136, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 43136 - | (vertical bar) character is not accepted in aliases
| (vertical bar) character is not accepted in aliases
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
WikidataRepo (Other open bugs)
master
All All
: Low minor with 1 vote (vote)
: ---
Assigned To: Wikidata bugs
:
: 51199 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-12-14 18:56 UTC by Aude
Modified: 2014-11-01 22:05 UTC (History)
10 users (show)

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


Attachments

Description Aude 2012-12-14 18:56:08 UTC
For the article:

https://de.wikipedia.org/wiki/Internationales_Frauenfilmfestival_Dortmund/K%C3%B6ln

There is a vertical bar in the aliases, such as "IFFF Dortmund | Köln".  In Wikidata, this gets split into two aliases "IFFF Dortmund" and "Köln".

Sure, the api uses | as a separator but is there a way we can accept them in aliases?
Comment 1 jeblad 2012-12-15 17:58:47 UTC
Aliases is a readable string, I can't really see a usecase for this. Or would this be to split off some part of it?
Comment 2 Nikola Smolenski 2012-12-23 08:38:02 UTC
The only way I see to get around this is to doubly urlencode the alias and then urldecode it in PHP, or to drop the possibility of adding two aliases at the same time (but does the API support this?).
Comment 3 jeblad 2013-01-08 10:53:08 UTC
We could encode a limited number of entities if they are part of the aliases, it seems like this is the only place this creates problems. That would make it possible to add literal pipe characters. The other special characters; ampersand, semicolons, hashmarks and question marks, does not seem to create problems.

It would be encoded in the strings before they are sent to the API, and decoded after they are received in the API.
Comment 4 Nikola Smolenski 2013-07-12 05:02:48 UTC
*** Bug 51199 has been marked as a duplicate of this bug. ***
Comment 5 pyfisch 2013-07-12 06:28:30 UTC
You can also add multiple aliases at once using the tab key which moves the cursor to the next alias field.
Comment 6 Marius Hoch 2014-11-01 22:05:13 UTC
This is no longer an issue.

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


Navigation
Links