Page MenuHomePhabricator

Cascading protection doesn't apply to transcluded file description pages
Closed, ResolvedPublicBUG REPORT

Description

If a cascading-protected page transcludes a file description page (without displaying the corresponding file, if any), the file description page will not inherit cascading protection, although anything transcluded from the file description page (except other file description pages) will properly inherit the protection.


Version: 1.23.0
Severity: minor

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 2:57 AM
bzimport set Reference to bz60109.
bzimport added a subscriber: Unknown Object (MLST).

Change 233207 had a related patch set uploaded (by Zhuyifei1999):
Cascade-protection: Fixes for files

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

Change 233207 abandoned by Zhuyifei1999:
Protection: Rework on how cascade-protection are applied to files

Reason:
I currently have no interest to fix this any time soon. If anyone else wish to work on this, feel free to restore.

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

ExE-Boss changed the subtype of this task from "Task" to "Bug Report".Aug 25 2021, 3:23 AM

Change #1112359 had a related patch set uploaded (by Dylsss; author: Dylsss):

[mediawiki/core@master] PermissionManager: Cascade protect file content, not wikitext

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

Change #1112359 merged by jenkins-bot:

[mediawiki/core@master] PermissionManager: Differentiate between cascading protection of file content and file pages

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

I added a draft entry for this and other recent work on cascading protection and file uploads to the Tech News for the week after next (so that we have some more time to discuss and edit them, as these changes are difficult to explain with brevity): https://meta.wikimedia.org/wiki/Tech/News/2025/10

matmarex claimed this task.

Change #1130586 had a related patch set uploaded (by Reedy; author: Dylsss):

[mediawiki/core@REL1_43] PermissionManager: Differentiate between cascading protection of file content and file pages

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

Change #1130587 had a related patch set uploaded (by Reedy; author: Dylsss):

[mediawiki/core@REL1_42] PermissionManager: Differentiate between cascading protection of file content and file pages

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

Change #1130588 had a related patch set uploaded (by Reedy; author: Dylsss):

[mediawiki/core@REL1_39] PermissionManager: Differentiate between cascading protection of file content and file pages

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

Change #1130586 merged by jenkins-bot:

[mediawiki/core@REL1_43] PermissionManager: Differentiate between cascading protection of file content and file pages

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

Change #1130587 merged by jenkins-bot:

[mediawiki/core@REL1_42] PermissionManager: Differentiate between cascading protection of file content and file pages

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

Change #1130588 abandoned by Reedy:

[mediawiki/core@REL1_39] PermissionManager: Differentiate between cascading protection of file content and file pages

Reason:

Complexity and duplication...

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