Page MenuHomePhabricator

cxserver "fetch segmented page content" API endpoint doesn't work for space-separated multi-word titles
Closed, ResolvedPublicBUG REPORT

Description

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

What happens?:
The request fails.

What should have happened instead?:
The request should work for both normalized and non-normalized page titles, i.e. in the above example, the following URLs should be equal:

Currently, only the second URL works properly in production.

It is worth nothing that for some reason I cannot reproduce this issue on my local cxserver installation, that is both normalized and non-normalized titles work properly for this endpoint.

Event Timeline

Change 1004104 had a related patch set uploaded (by Nik Gkountas; author: Nik Gkountas):

[mediawiki/extensions/ContentTranslation@master] SX fetchSegmentedContent: Manually normalize page title for request

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

Change 1004104 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] SX fetchSegmentedContent: Manually normalize page title for request

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

Change 1004124 had a related patch set uploaded (by Nik Gkountas; author: Nik Gkountas):

[mediawiki/extensions/ContentTranslation@master] CX3 Build 0.2.0+20240216

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

Change 1004124 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] CX3 Build 0.2.0+20240216

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

Change 1005088 had a related patch set uploaded (by Nik Gkountas; author: Nik Gkountas):

[mediawiki/services/cxserver@master] Normalize page title before fetching page content

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

@KartikMistry Is it possible to backport the fix instead of waiting for weekly thursday update? On bnwiki, we are organizing an article writing contest and participant keeps complaining why it isnt working.

Change 1005088 merged by jenkins-bot:

[mediawiki/services/cxserver@master] Normalize page title before fetching page content

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

Change 1005487 had a related patch set uploaded (by KartikMistry; author: KartikMistry):

[operations/deployment-charts@master] Update cxserver to 2024-02-21-112101-production

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

Change 1005487 merged by jenkins-bot:

[operations/deployment-charts@master] Update cxserver to 2024-02-21-112101-production

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

Mentioned in SAL (#wikimedia-operations) [2024-02-21T12:22:50Z] <kart_> Updated cxserver to 2024-02-21-112101-production (T357769)

@KartikMistry Is it possible to backport the fix instead of waiting for weekly thursday update? On bnwiki, we are organizing an article writing contest and participant keeps complaining why it isnt working.

We've deployed a fix for this issue and Section translation should work fine now. Please let us know if you're facing any issues. Thanks!