Page MenuHomePhabricator

Preloading a page in the MediaWiki: namespace via InputBox is broken in Russian Wikinews
Closed, ResolvedPublicBUG REPORT

Description

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

What happens?:

  • The resulting page — Создание страницы «AAA» — contain empty main input field

What should have happened instead?:

Not long ago it worked. No one here knows when and why it was broken.

Event Timeline

Removing Wikimedia-Site-requests as I don't see which exact configuration change server-side you'd like to get applied?

Removing Wikimedia-Site-requests as I don't see which exact configuration change server-side you'd like to get applied?

I just placed a tag that I randomly found suitable as I am not used to them now. Thanks for correcting! Probably no server-side problem, local code most likely

I also tested against the same template inside my userspace. Seems preload parameter doesn't work well with MediaWiki space pages.

Other pages in MediaWiki namespace preload normally (see sample code below). But not MediaWiki:Create_News page.
This is a recent bug (it worked correctly a week ago) with MediaWiki software.

{{#tag:inputbox|
type=create
preload=MediaWiki:Sidebar
}}

People discussed it here https://ru.wikinews.org/wiki/Обсуждение_участника:Iluvatar#Добавление_новости and say "This a problem with MediaWiki"

But they used a workaround, so problem is solved for now, thanks for help! Should I close this bug?

Should I close this bug?

No. This is a serious bug in a basic feature that could appear anywhere in the future.

This ticket seems to confirm the need of rewriting MediaWiki completely what was already widely discussed here https://phabricator.wikimedia.org/T287380 and in other bugreports related to Wikinews

@ssr: Please elaborate what the preload function in the MediaWiki core codebase has to do with some separate extension called DPL or "rewriting completely".

Aklapper renamed this task from Preloading a specific MediaWiki: page via InputBox is broken in Russian Wikinews to Preloading a page in the MediaWiki: namespace via InputBox is broken in Russian Wikinews.Jul 6 2023, 12:33 PM
Aklapper added a project: Regression.

@ssr: Please elaborate what the preload function in the MediaWiki core codebase has to do with some separate extension called DPL or "rewriting completely".

I don't know exactly. Programmers, including @Krassotkin and @Neolexx told me so. They said issues like DPL cannot be fixed normally with the current engine which is old and full of patches. I know that MediaWiki is a very old software. And we are now dealing with problems caused by it. That's what programmers say and what I "feel" as a regular user and an administrator.

@ssr Hey, did you forget that Krassotkin no longer has access to phab here?

@ssr Hey, did you forget that Krassotkin no longer has access to phab here?

I know this very well, but when he wasn't blocked, he talked about it a lot, so I mentioned him because of this.

upd: I didn't add them as subscribers, I didn't know that mentioning them adds them.

@ssr: This ticket has nothing to do with DPL but is about a specific issue with preload. Please post off-topic opinions and assumptions in forums instead. Thanks!

@ssr: This ticket has nothing to do with DPL but is about a specific issue with preload. Please post off-topic opinions and assumptions in forums instead. Thanks!

This is not offtopic. This is all connected and I have to warn people about that this is not a single issue but a part of big problem. This is directly related to this topic. Everybody should know this. You can't prevent everybody from knowing this by forcing me to strictly narrow the discourse.

@ssr: Technically speaking this is definitely off-topic for this ticket as this ticket is about a very specific technical issue in one piece of software, so I ask you again to please bring up meta-level software quality or development priority discussions somewhere else. Please see https://www.mediawiki.org/wiki/Bug_management/Development_prioritization - thanks for staying on-topic here.

Umherirrender edited projects, added MediaWiki-Page-editing; removed MediaWiki-General.
Umherirrender edited subscribers, added: Umherirrender; removed: Krassotkin.

This is a regression from https://gerrit.wikimedia.org/r/c/mediawiki/core/+/912352 / 803f111587810b35456c17d09872666b34659fb8 / T330337.
After that patch set preloading of pages from MediaWiki namespaces is using Message::text, which interprets the <includeonly> tags in the non-include mode and that makes it appear empty (it works for text outside of includeonly), while the normal processing for preload handles the text in the include-mode of the parser to allow includeonly and subst: to work.

Change 936085 had a related patch set uploaded (by Umherirrender; author: Umherirrender):

[mediawiki/core@master] editpage: Fix use of <includeonly> in preload for NS_MEDIAWIKI titles

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

@ssr: Technically speaking this is definitely off-topic for this ticket as this ticket is about a very specific technical issue in one piece of software, so I ask you again to please bring up meta-level software quality or development priority discussions somewhere else. Please see https://www.mediawiki.org/wiki/Bug_management/Development_prioritization - thanks for staying on-topic here.

I was about to close the task as soon as workaround had been found. But Iluvatar said "This is a serious bug in a basic feature" that's why I elaborated the question by more on-topic arguments. There are more bugs and tickets like this, I just mentioned one. I wish I could make no bugreports, but I had to make a number of them. Some of these bugs are annoying and disrupt normal everyday work. It's no crime when I discuss my work on a forum directly related to it.

Change 936085 merged by jenkins-bot:

[mediawiki/core@master] editpage: Fix use of includeonly for preload of page in mw namespace

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

matmarex subscribed.

The fix will be deployed to Wikimedia wikis this week, Tuesday–Thursday, per the usual schedule.