Last modified: 2013-10-09 17:23:49 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 T49949, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 47949 - Unparsed wikitext shown in "An unexpected error occurred." message on "Link with page" dialog
Unparsed wikitext shown in "An unexpected error occurred." message on "Link w...
Status: VERIFIED FIXED
Product: MediaWiki extensions
Classification: Unclassified
WikidataClient (Other open bugs)
unspecified
All All
: High major with 1 vote (vote)
: ---
Assigned To: Wikidata bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-05-01 19:13 UTC by Liangent
Modified: 2013-10-09 17:23 UTC (History)
5 users (show)

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


Attachments

Description Liangent 2013-05-01 19:13:21 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.
Comment 1 TMg 2013-05-11 07:42:14 UTC
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.
Comment 2 TMg 2013-07-02 15:19:23 UTC
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.
Comment 3 Lydia Pintscher 2013-10-07 14:08:45 UTC
Yeah let's close this for now. Adding Marius to CC for the remaining question.
Comment 4 Marius Hoch 2013-10-07 14:42:04 UTC
This should be definitely fully gone after https://gerrit.wikimedia.org/r/71545 (which is from July).

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


Navigation
Links