Page MenuHomePhabricator

🏷️📜 Label and Description collision detector finds collision with itself when replacing an Item's label or description for a specific language
Closed, ResolvedPublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

  • find an Item that has both a label and a description set in a specific language
  • replace the label (or description) with a PUT request to /wikibase/v0/entities/items/{item_id}/[labels|descriptions]/{language}
  • send the same PUT request again

What happens?:

  • HTTP response with status "400 Bad Request"
  • error code item-label-description-duplicate
  • error message: "Item '{item_id}' already has label '...' associated with language code '{language}', using the same description text"

What should have happened instead?:

  • HTTP response with status "200 OK"
  • new label in the response body

Event Timeline

Silvan_WMDE renamed this task from Label and Description collision detector finds collision with itself when replacing an Item's label or description for a specific language to 🏷️📜 Label and Description collision detector finds collision with itself when replacing an Item's label or description for a specific language.Apr 28 2023, 1:28 PM
Silvan_WMDE created this task.

Change 914338 had a related patch set uploaded (by Silvan Heintze; author: Silvan Heintze):

[mediawiki/extensions/Wikibase@master] REST: Avoid collision with itself on repeated PUT

https://gerrit.wikimedia.org/r/914338

Change 914338 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] REST: Avoid collision with itself on repeated PUT

https://gerrit.wikimedia.org/r/914338