Skip to content

Bug 2098202 - Remove the jsonrpc and rest features and the JSON::RPC and Test::Taint dependencies - #2848

Merged
dklawren merged 2 commits into
mozilla:masterfrom
Xzzz:bug-2098202
Nov 29, 2026
Merged

dklawren merged 2 commits into
mozilla:masterfrom
Xzzz:bug-2098202

Conversation

@Xzzz

@Xzzz Xzzz commented Nov 27, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Removes the jsonrpc and rest features and their JSON::RPC and Test::Taint dependencies, which nothing has loaded since the legacy REST server was removed.

Follow-up of 2081819, part of 2057358.

Changes

  • User autocompletion, possible duplicates on the bug creation page and the comment_taggers_group parameter no longer depend on the jsonrpc feature. They already use the native API.
  • JSON::RPC, Test::Taint and Router::Simple (only needed by JSON::RPC) are removed from cpanfile and cpanfile.snapshot.
  • JSON, loaded directly by Bugzilla::Token and several extensions but only installed as a dependency of other modules (JSON::RPC among them), is now declared in Makefile.PL and cpanfile.

Test plan

  • User autocompletion on a bug's CC field and in advanced search
  • Possible duplicates shown when typing a summary on the bug creation page
  • Setting comment_taggers_group in Administration > Parameters > Group Security, then tagging a comment

References

Xzzz added 2 commits November 27, 2026 16:48
…and Test::Taint dependencies

Since the legacy REST server was removed, nothing loads JSON::RPC or Test::Taint.

- Drop the feature_enabled('jsonrpc') checks for user autocompletion and possible duplicates,
  and check_comment_taggers_group: the comment_taggers_group parameter now uses check_group
- Remove the jsonrpc and rest features from Makefile.PL
- Remove JSON::RPC and Test::Taint from cpanfile and cpanfile.snapshot, with Router::Simple
  which only JSON::RPC needed, and the Test::Taint exception in Bugzilla::CPAN
…C in comments

- Bugzilla::Token and several extensions use JSON directly, but it was only installed as a
  dependency of other modules, JSON::RPC among them. Add it to Makefile.PL and cpanfile
- Remove JSON-RPC from comments in Bugzilla::Object, Bugzilla::Template and Bugzilla::Util
@Xzzz
Xzzz requested a review from dklawren November 27, 2026 20:46

@dklawren dklawren left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM r=dkl

@dklawren
dklawren merged commit 2bbbb12 into mozilla:master Nov 29, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants