Page MenuHomePhabricator

CXuesong (CXuesong)
Animal

Projects

User does not belong to any projects.

Today

  • No visible events.

Tomorrow

  • No visible events.

Monday

  • No visible events.

User Details

User Since
Oct 22 2016, 8:43 AM (501 w, 6 d)
Availability
Available
IRC Nick
CXuesong
LDAP User
CXuesong
MediaWiki User
CXuesong [ Global Accounts ]

a gray tabby nerd playing with Wikibase by Crystal Pool; author of WikiClientLibrary

See also: GitHub | zhwarriorswiki | enwarriorswiki

Recent Activity

Mar 17 2026

CXuesong updated the task description for T420365: "ExtensionRegistry" not found in AccountRequest.php.
Mar 17 2026, 2:37 PM · MediaWiki-extensions-ConfirmAccount
CXuesong created T420365: "ExtensionRegistry" not found in AccountRequest.php.
Mar 17 2026, 2:35 PM · MediaWiki-extensions-ConfirmAccount

Jul 23 2025

CXuesong added a comment to T386208: "PHP Notice: Undefined offset: 1" / "DivisionByZeroError: Division by zero" when uploading file and parsing GPS EXIF data.

Hi I'm here to report the same issue. A user of WikiClientLibrary has opened CXuesong/WikiClientLibrary#120 with an image whose EXIF data will definitely trigger the DivisionByZeroError when getting uploaded. I've just tried this image on wikipedia:test:Special:Upload and I got the following exception stack trace

Jul 23 2025, 3:10 PM · MW-1.39-notes, MW-1.43-notes, MW-1.44-notes, MW-1.45-notes (1.45.0-wmf.12; 2025-07-29), MW-1.44-release, MW-1.43-release, MW-1.39-release, Commons, MediaWiki-Uploading, Structured-Data-Backlog, MediaWiki-File-management, Wikimedia-production-error

Apr 27 2025

CXuesong updated the task description for T392771: MediaWiki API imageinfo continuation leads to a dead loop.
Apr 27 2025, 12:50 PM · MW-Interfaces-Team, Commons, MediaWiki-File-management, MediaWiki-Action-API
CXuesong created T392771: MediaWiki API imageinfo continuation leads to a dead loop.
Apr 27 2025, 12:47 PM · MW-Interfaces-Team, Commons, MediaWiki-File-management, MediaWiki-Action-API

Aug 31 2024

CXuesong created T373733: Provide a way for Wikibase to include a custom header when sending api.php requests to target MediaWiki endpoint.
Aug 31 2024, 10:05 AM · Wikibase (3rd party installations), Wikidata, MediaWiki-extensions-Wikibase-Repo

May 1 2021

CXuesong added a comment to T269990: jsonEncode fails when value contains more than 1 reference to the a same table.

@Verdy_p Thanks for your very detailed explanation on this!

May 1 2021, 1:34 PM · Scribunto

Feb 28 2021

CXuesong updated CXuesong.
Feb 28 2021, 7:51 AM
CXuesong created T275983: `stasherrors` node contained in action=upload error result fills error code instead of formatted error message in the `message` field.
Feb 28 2021, 7:49 AM · MW-Interfaces-Team, MediaWiki-Action-API, MediaWiki-Uploading

Dec 12 2020

CXuesong created T269990: jsonEncode fails when value contains more than 1 reference to the a same table.
Dec 12 2020, 8:26 AM · Scribunto

Sep 27 2020

CXuesong added a comment to T247196: Wikibase property names are missing when renders.

This bug does not reproduce on 1.36.0-wmf.10.

Sep 27 2020, 5:13 PM · MW-1.36-notes (1.36.0-wmf.5; 2020-08-18), MW-1.35-notes (1.35.0-wmf.34; 2020-05-26), User-Ladsgroup, Regression, Wikidata-Campsite (Wikidata-Campsite-Iteration-∞ (On Hold)), User-Addshore, Wikidata, MediaWiki-extensions-Wikibase-Repo

Mar 29 2020

CXuesong added a comment to T247196: Wikibase property names are missing when renders.

I've applied patch r/578298 and it seems the problem has been mitigated after purging the pages. Thanks in advance!

Mar 29 2020, 3:13 PM · MW-1.36-notes (1.36.0-wmf.5; 2020-08-18), MW-1.35-notes (1.35.0-wmf.34; 2020-05-26), User-Ladsgroup, Regression, Wikidata-Campsite (Wikidata-Campsite-Iteration-∞ (On Hold)), User-Addshore, Wikidata, MediaWiki-extensions-Wikibase-Repo

Mar 14 2020

CXuesong updated CXuesong.
Mar 14 2020, 11:37 AM

Mar 8 2020

CXuesong added a comment to T247196: Wikibase property names are missing when renders.

Yes, I have.

Mar 8 2020, 5:41 PM · MW-1.36-notes (1.36.0-wmf.5; 2020-08-18), MW-1.35-notes (1.35.0-wmf.34; 2020-05-26), User-Ladsgroup, Regression, Wikidata-Campsite (Wikidata-Campsite-Iteration-∞ (On Hold)), User-Addshore, Wikidata, MediaWiki-extensions-Wikibase-Repo
CXuesong updated CXuesong.
Mar 8 2020, 2:40 PM
CXuesong updated CXuesong.
Mar 8 2020, 2:39 PM
CXuesong renamed T247196: Wikibase property names are missing when renders from Wikibase property names are missing to Wikibase property names are missing when renders.
Mar 8 2020, 2:36 PM · MW-1.36-notes (1.36.0-wmf.5; 2020-08-18), MW-1.35-notes (1.35.0-wmf.34; 2020-05-26), User-Ladsgroup, Regression, Wikidata-Campsite (Wikidata-Campsite-Iteration-∞ (On Hold)), User-Addshore, Wikidata, MediaWiki-extensions-Wikibase-Repo
CXuesong created T247196: Wikibase property names are missing when renders.
Mar 8 2020, 2:15 PM · MW-1.36-notes (1.36.0-wmf.5; 2020-08-18), MW-1.35-notes (1.35.0-wmf.34; 2020-05-26), User-Ladsgroup, Regression, Wikidata-Campsite (Wikidata-Campsite-Iteration-∞ (On Hold)), User-Addshore, Wikidata, MediaWiki-extensions-Wikibase-Repo

Jan 19 2020

Restricted Application added a project to T78703: Support query continuation for Nearby requests: Discovery-Search.

Just want to let you know now we have some dependency on the continuation support of action=query&list=geosearch XD (T95241 has been merged into this task)

Jan 19 2020, 4:59 AM · Discovery-Search, GeoData

Jul 28 2019

Restricted Application added a project to T170425: Interlacing login and logout requests on different client on same PC affect each other: Platform Engineering.

I came here because this problem seems to be gone if I use a Bot Password (generated from Special:BotPasswords). That is, I have the following response sequence now, as long as I use a bot password to login

B --> format=json&action=logout
B <-- {}
A --> format=json&action=query&meta=userinfo&uiprop=blockinfo%7Cgroups%7Chasmsg%7Crights
A <-- {"batchcomplete":"","query":{"userinfo":{"id":6332,"name":"XuesongBot","groups":["bot","editor","*","user","autoconfirmed"], ...

which means logging out on the HttpClient B won't logging me out on the HttpClient A. While this is great and can facilitate my unit testing, I'm just wondering why the behavior can be such different. Do you have some explanation that may shed some light on this? Thanks!

Jul 28 2019, 3:55 PM · Platform Engineering, MediaWiki-Action-API

Dec 23 2017

CXuesong removed a watcher for MediaWiki-extensions-Wikibase-Repo: CXuesong.
Dec 23 2017, 3:43 PM
CXuesong removed a watcher for MediaWiki-extensions-Wikibase-Client: CXuesong.
Dec 23 2017, 3:42 PM

Dec 17 2017

CXuesong added a watcher for MediaWiki-extensions-Wikibase-Client: CXuesong.
Dec 17 2017, 11:13 AM
CXuesong added a watcher for MediaWiki-extensions-Wikibase-Repo: CXuesong.
Dec 17 2017, 11:12 AM
CXuesong added a comment to T173842: [BUG] Wikidata description for the specific Chinese language variant should be shown.

I agree with @fantasticfears 's comments. Allowing user to mark a label in zh is not accurate enough. I even thought of, in an aggressive perspective, we should use zh-cn/tw/hk/mo/sg instead of plain zh-hans/hant, when specifying the label and description for an entity. After all, aside from fallbacks (e.g. zh-tw --> zh-hant), wikidata can automatically use, e.g. zh-tw label when a user request for zh-hant label, but there is no zh-hant label directly assigned to this entity.

Dec 17 2017, 4:53 AM · Product-Infrastructure-Team-Backlog-Deprecated, User-Addshore, Wikidata, Android-app-feature-Multilingual, Chinese-Sites, Wikipedia-Android-App-Backlog, Android-app-Bugs

Dec 11 2017

CXuesong added a comment to T182573: action=wbsetclaim cannot create new claim as stated in the documentation.

I see. Thanks for your explanation, Thiemo!

Dec 11 2017, 4:23 PM · patch-welcome, Documentation, MediaWiki-extensions-Wikibase-Repo, Wikidata
CXuesong created T182573: action=wbsetclaim cannot create new claim as stated in the documentation.
Dec 11 2017, 12:21 PM · patch-welcome, Documentation, MediaWiki-extensions-Wikibase-Repo, Wikidata

Dec 10 2017

CXuesong added a comment to T182485: zh falls back to zh-hans, why?.

My guess is because in CLDR, the Simplified content are just using zh instead of zh_hans

Dec 10 2017, 7:04 AM · MediaWiki-Internationalization

Dec 9 2017

CXuesong created T182485: zh falls back to zh-hans, why?.
Dec 9 2017, 6:09 AM · MediaWiki-Internationalization

Oct 15 2017

CXuesong closed T177269: Is `altitude` in `globe-coordinate` still in use? as Resolved.
Oct 15 2017, 6:17 AM · Wikidata
CXuesong added a comment to T177269: Is `altitude` in `globe-coordinate` still in use?.

Jeroen De Dauw replied in the mailing list:

It is not in use and never really was. (Code indicating it is not in use:
https://github.com/DataValues/Geo/blob/2d8e852d04318b13bd0db39b24afe7c56c61dc3e/src/Values/GlobeCoordinateValue.php#L193-L195
)

I'm not entirely sure why it is still in the API output and what the plans
with it are, but my guess is that it is still there for compatibility
reasons and that there is no intention of using this key in the future. If
I where creating an API client I'd just ignore this key.

Oct 15 2017, 6:12 AM · Wikidata

Oct 3 2017

CXuesong added a comment to T177269: Is `altitude` in `globe-coordinate` still in use?.

I'm not quite sure where I should go if I were to have some general Wikibase (API) questions. Could you please give me some guidance? Thanks :-)

Please see the "Contact" section on https://www.wikidata.org/wiki/Wikidata:Main_Page

Oct 3 2017, 9:45 AM · Wikidata
CXuesong created T177269: Is `altitude` in `globe-coordinate` still in use?.
Oct 3 2017, 4:23 AM · Wikidata

Jul 12 2017

CXuesong created T170425: Interlacing login and logout requests on different client on same PC affect each other.
Jul 12 2017, 2:13 PM · Platform Engineering, MediaWiki-Action-API

Feb 6 2017

CXuesong updated subscribers of T157185: Bug or feature? A \n is automatically inserted before returned string if it starts with a colon.

So, what should be the actual output?

A

testB?

For now it's

A
:testB

which displays as
A
(Indented)testB
while what I want is just

A:testB
Feb 6 2017, 6:29 AM · Scribunto

Feb 4 2017

CXuesong created T157185: Bug or feature? A \n is automatically inserted before returned string if it starts with a colon.
Feb 4 2017, 8:40 AM · Scribunto