Page MenuHomePhabricator

Provide an API for accessing the contents of CopyUploadsDomains
Closed, ResolvedPublicFeature

Description

Feature summary (what you would like to be able to do and where):

As a tool developer I would like to be able to use the action API to retrieve the list of domains allow-listed for uploads by url as JSON.

Use case(s) (list the steps that you performed to discover that problem, and describe the actual underlying problem which you want to solve. Do not describe only a solution):

I don't want maintain local copies of MediaWiki:Copyupload-allowed-domains in my tool(s) nor proxy it and in the best of worlds not even parse the raw contents.

Benefits (why should this be implemented?):

To reduce maintenance and work for developers

Event Timeline

Should be very trivially exposeable via meta=siteinfo

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

[mediawiki/core@master] api: Expose CopyUploadsDomains via meta=siteinfo

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

Reedy triaged this task as Low priority.Jun 5 2025, 8:39 AM

Change #1153949 merged by jenkins-bot:

[mediawiki/core@master] api: Expose CopyUploadsDomains via meta=siteinfo

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

Reedy claimed this task.

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

[mediawiki/core@master] api: Fix copyuploaddomains output for format=xml

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

Change #1154414 merged by jenkins-bot:

[mediawiki/core@master] api: Fix copyuploaddomains output for format=xml

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