Page MenuHomePhabricator

Concept URI links for statements are not correctly redirecting in Wikibase
Closed, ResolvedPublicBUG REPORT

Description

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

  • Open query service for a wikibase cloud instance
  • Write a query that selects statement links, such as https://tinyurl.com/24klwxz9 (Note that this query works on other wikibases that contain items too, for example https://tinyurl.com/23rzj32w)
  • Run the query
  • Open the first statement link returned

What happens?:
After you open the link, you get to a page which says "Bad Request\n Invalid ID: statement/<long ID string here>"

What should have happened instead?:
You should, like when selecting a wikidata statement, get sent to the specific statement of the specific item that this link should point to.

Software version:
See here: https://validatortest.wikibase.cloud/wiki/Special:Version

Event Timeline

Thanks, possibly we need to be more careful how we do this rewriting in https://github.com/wbstack/mediawiki/blob/main/Dockerfile#L96 to better match what is done (for example) on Wikidata. I would describe this as a bug.

Gehel subscribed.

Removing the Wikidata Query Service tag, since this is specific to WBClould

Anton.Kokh triaged this task as Medium priority.Jun 11 2024, 3:27 PM

We need probably all of the rewrite rules that are present in the WMF config for wikidata.

Currently we only have this one: https://gerrit.wikimedia.org/g/operations/puppet/+/e9bbf3b1d78ce8def10f0d1d908426dfea4e8a27/modules/mediawiki/files/apache/sites/wikidata-uris.incl#42

We probably need to include all of the rules above this.

@M.alten.tue This should be fixed now. Could you please verify?

Tarrow renamed this task from Query Service Wikibase Cloud gives wrong statement links to Concept URI links for statements are not correctly redirecting in Wikibase.Nov 11 2024, 9:29 AM

@Anton.Kokh As far as I can tell it is working now! Thanks to everyone here for fixing this