Closed Bug 2098202 Opened 2 days ago Closed 1 hour ago

Remove the jsonrpc and rest features and the JSON::RPC and Test::Taint dependencies

Categories

(bugzilla.mozilla.org :: API, task)

Production

Tracking

()

RESOLVED FIXED

People

(Reporter: xavier.lhour, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(1 external file)

Part of the REST-to-Mojo migration tracked in bug 2057358

Since bug 2081819 removed the legacy REST server and its JSON-RPC code, nothing loads JSON::RPC or Test::Taint any more. The jsonrpc and rest features in Makefile.PL still require them, and some code still checks the jsonrpc feature to turn on things that now go through the native API:

  • template/en/default/global/userselect.html.tmpl:85 and template/en/default/search/form.html.tmpl:358: user autocompletion
  • template/en/default/bug/create/create.html.tmpl:534
  • Bugzilla/Config/Common.pm:330 (check_comment_taggers_group): comment tagging is refused without the "JSON-RPC feature"

Proposed changes

  • Drop the feature_enabled('jsonrpc') checks above (and the check_comment_taggers_group one), keeping the other conditions
  • Remove the jsonrpc and rest features from Makefile.PL
  • Remove JSON::RPC and Test::Taint from cpanfile and cpanfile.snapshot, and the Test::Taint exception in Bugzilla/CPAN.pm:109

The old release notes pages (release-notes.html.tmpl, release-notes3.html.tmpl, BMO's upgrade-3.6.html.tmpl) mention them as history and stay as they are.

Blocks: 2057358
See Also: → 2081819

Authored by https://github.com/Xzzz
https://github.com/mozilla/bmo/commit/2bbbb1226b7f01f0dcbb81dc6a3071055656e693
[master] Bug 2098202 - Remove the jsonrpc and rest features and the JSON::RPC and Test::Taint dependencies

(via GitHub webhook, authenticated as shared-secret)

Status: UNCONFIRMED → RESOLVED
Closed: 1 hour ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: