Last modified: 2013-10-09 17:23:49 UTC
Repro: 1. Manage to trick the system to have it show "Add links" for an article with an item created (for example, bug 47866) 2. Use the "Add links" feature to add some links. 3. It says: An unexpected error occurred. * Details Site link [[enwiki:Chinese character description languages]] already used by item [[Q5100720]]. Where [[ ]] are not parsed as wikilink.
Here is how I reproduce this: * Choose two articles that do not exist in any other language. I choose [[dewiki:Pendo Verlag]] and [[huwiki:Guelmino Valéria]] for example. * Go to one of these articles. * Click "Add links". The new popup wizard will be shown. * Try to add the other article. There are multiple bugs: 1. The error message shows unparsed wikitext. 2. The message is a mixture of three languages (see the example from the huwiki below). 3. The error message is twisted. It shows the wrong article and the wrong Wikidata qualifier. The example below is shown in the huwiki when I try to add [[dewiki:Pendo Verlag]]. The message should tell me that [[dewiki:Pendo Verlag]] is already used. An unexpected error occurred. Részletek Der Websitelink [[huwiki:Guelmino Valéria]] wird bereits vom Datenobjekt [[Q12814468]] verwendet.
Is this report invalid now and should be closed? I'm not sure. Is the erroneous code still in the code base? I tried to reproduce my example today. Instead of displaying an error message the two Wikidata items are silently "merged". The link is removed from the first Wikidata item and added to the second. I'm not sure if this is a good idea. It's way to easy to introduce errors with this mechanic. I did not even realized what I did without checking my contributions at Wikidata. There should be at least a warning before a link is removed from an existing item. But I guess this would be an other bug.
Yeah let's close this for now. Adding Marius to CC for the remaining question.
This should be definitely fully gone after https://gerrit.wikimedia.org/r/71545 (which is from July).