Page MenuHomePhabricator

Hard deprecate and remove the deprecated global shell functions
Open, Needs TriagePublic

Description

The following global functions are soft deprecated. Their usages should be replaced, then they should start emit deprecation warnings. And eventually they should be removed.

  • wfEscapeShellArg
  • wfShellExec
  • wfShellExecWithStderr
  • wfShellWikiCmd

Event Timeline

Change 735739 had a related patch set uploaded (by Zabe; author: Zabe):

[mediawiki/extensions/WikimediaMaintenance@master] Replace deprecated function wfEscapeShellArg with Shell::escape()

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

Change 735739 abandoned by Zabe:

[mediawiki/extensions/WikimediaMaintenance@master] Replace deprecated function wfEscapeShellArg with Shell::escape()

Reason:

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

Change #1264641 had a related patch set uploaded (by Lewis Cawte; author: Lewis Cawte):

[mediawiki/extensions/PdfHandler@master] Replace global shell functions with Shell class

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

Change #1264636 had a related patch set uploaded (by Lewis Cawte; author: Lewis Cawte):

[mediawiki/extensions/WikimediaMaintenance@master] Drop usage of Shell-related globals

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

Change #1264636 merged by jenkins-bot:

[mediawiki/extensions/WikimediaMaintenance@master] Drop usage of Shell-related globals

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

Change #1264641 merged by jenkins-bot:

[mediawiki/extensions/PdfHandler@master] Replace global shell functions with Shell class

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

Change #1264322 had a related patch set uploaded (by Lewis Cawte; author: Lewis Cawte):

[mediawiki/extensions/Scribunto@master] Replace usages of Shell related globals

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

Change #1264322 merged by jenkins-bot:

[mediawiki/extensions/Scribunto@master] Replace usages of Shell related globals

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

Change #1269539 had a related patch set uploaded (by Lewis Cawte; author: Lewis Cawte):

[mediawiki/extensions/TimedMediaHandler@master] [UNTESTED] Replace deprecated global shell functions

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

Change #1281992 had a related patch set uploaded (by Lewis Cawte; author: Lewis Cawte):

[mediawiki/core@master] UploadVerification: Convert remaining wfShell* commands to Shell class

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

Change #1285863 had a related patch set uploaded (by Lewis Cawte; author: Lewis Cawte):

[mediawiki/core@master] GlobalIdGenerator: Convert deprecated shell global functions calls to Shell class

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

Should now be patches for review against all WMF-deployed code & core per codesearch.