Page MenuHomePhabricator

MediaWiki should not prevent creation of empty pages
Closed, ResolvedPublic

Description

While this check is usually useful, it prevents legitimate cases where this is needed (for example providing blank translation via Translate extension). It should be allowed via API, I don't care whether the normal edit interface still prevents it.


Version: 1.23.0
Severity: normal
URL: https://translatewiki.net/w/i.php?title=Special%3ASearch&profile=advanced&search=%22Creating+new%2C+empty+pages+is+not+allowed%22+&fulltext=Search&ns90=1&redirs=1&profile=advanced
See Also:

Details

Reference
bz57238

Event Timeline

bzimport raised the priority of this task from to High.Nov 22 2014, 2:22 AM
bzimport set Reference to bz57238.

(In reply to comment #0)

While this check is usually useful, it prevents legitimate cases where this
is needed (for example providing blank translation via Translate extension).

What is a blank translation and why does it require a blank page?

(In reply to comment #1)

(In reply to comment #0)

While this check is usually useful, it prevents legitimate cases where this
is needed (for example providing blank translation via Translate extension).

What is a blank translation and why does it require a blank page?

https://translatewiki.net/w/i.php?title=Thread:Support/How_can_I_translate_a_message_as_the_empty_string%3F

I believe this was intended to prevent pointless pages being created, e.g. in error by anons. However, I suppose that this can now be prevented (or tagged for follow-up) with AbuseFilter instead.

(In reply to Bawolff (Brian Wolff) from comment #5)

END ?

I don't understand. You think we should bring that magicword back (I vaguely recall that it was removed many years ago) to somehow let users create otherwise-blank pages? I'm not sure that would be seen as a great step.

Change 145899 had a related patch set uploaded by Florianschmidtwelzow:
Enable the creation of empty pages

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

Change 145899 merged by jenkins-bot:
Enable the creation of empty pages

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

Change 149623 had a related patch set uploaded by Florianschmidtwelzow:
Fix getAutosummary for create blank page

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

Change 149623 merged by jenkins-bot:
Fix getAutosummary for create blank page

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

If this is required only for Translation NS, why was "blank pagecration" enabled for all namespaces?

Please restore the old config for all Namespaces (expect the translationNS one).

Why? The current behavior is more intuitive.

If you want, please open a separate issue. This one, as described, has been fixed and does not need reopening.

(In reply to Steinsplitter from comment #12)

If this is required only for Translation NS, why was "blank pagecration"
enabled for all namespaces?

Please restore the old config for all Namespaces (expect the translationNS
one).

I don't see any reason for such a restriction. Anyway, if you pook at the original patch (https://gerrit.wikimedia.org/r/145899), you may notice this was not merely done because of the translations' namespace.