Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Bugzilla/CPAN.pm
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ sub feature {
my $feature = $meta->feature($feature_name);
my @modules = $feature->prereqs->merged_requirements(['runtime'], ['requires'])
->required_modules;
Module::Runtime::require_module($_) foreach grep { !/^Test::Taint$/ } @modules;
Module::Runtime::require_module($_) foreach @modules;
return $FEATURE_LOADED{$feature_name} = 1;
}

Expand Down
14 changes: 0 additions & 14 deletions Bugzilla/Config/Common.pm
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ use base qw(Exporter);
check_mail_delivery_method check_notification check_utf8
check_bug_status check_smtp_auth check_theschwartz_available
check_maxattachmentsize check_email
check_comment_taggers_group
get_all_group_names
);

Expand Down Expand Up @@ -325,14 +324,6 @@ sub check_theschwartz_available {
return "";
}

sub check_comment_taggers_group {
my $group_name = shift;
if ($group_name && !Bugzilla->feature('jsonrpc')) {
return "Comment tagging requires installation of the JSON-RPC feature";
}
return check_group($group_name);
}

sub get_all_group_names {
my $group_names = [''];
try {
Expand Down Expand Up @@ -443,9 +434,4 @@ Checks that the value is a valid number

Checks that the value is a valid regexp

=item C<check_comment_taggers_group>

Checks that the required modules for comment tagging are installed, and that a
valid group is provided.

=back
2 changes: 1 addition & 1 deletion Bugzilla/Config/GroupSecurity.pm
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ sub get_param_list {
type => 's',
choices => \&get_all_group_names,
default => 'editbugs',
checker => \&check_comment_taggers_group
checker => \&check_group
},

{
Expand Down
2 changes: 1 addition & 1 deletion Bugzilla/Object.pm
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ use constant IS_CONFIG => 0;
# When DYNAMIC_COLUMNS is true, _get_db_columns() will use the information schema.
use constant DYNAMIC_COLUMNS => 0;

# This allows the JSON-RPC interface to return Bugzilla::Object instances
# This allows the API to return Bugzilla::Object instances
# as though they were hashes. In the future, this may be modified to return
# less information.
sub TO_JSON { return {%{$_[0]}}; }
Expand Down
2 changes: 1 addition & 1 deletion Bugzilla/Template.pm
Original file line number Diff line number Diff line change
Expand Up @@ -872,7 +872,7 @@ sub create {
# And if we're not in the WebService, wrap the message.
# (Wrapping the message in the WebService is unnecessary
# and causes awkward things like \n's appearing in error
# messages in JSON-RPC.)
# API error messages.)
unless (i_am_webservice()) {
$var = wrap_comment($var, 72);
}
Expand Down
2 changes: 1 addition & 1 deletion Bugzilla/Util.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1259,7 +1259,7 @@ in a command-line script.
=item C<i_am_webservice()>

Tells you whether or not the current usage mode is WebServices related
such as JSON-RPC or REST.
such as the REST API.

=item C<is_webserver_group()>

Expand Down
15 changes: 1 addition & 14 deletions Makefile.PL
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ my %requires = (
'HTML::Escape' => '1.10',
'IO::Async' => '0.71',
'IPC::System::Simple' => 0,
'JSON' => 0,
'JSON::MaybeXS' => '1.003008',
'JSON::Validator' => '3.05',
'JSON::XS' => '2.01',
Expand Down Expand Up @@ -230,13 +231,6 @@ my %optional_features = (
description => 'MySQL database support',
prereqs => {runtime => {requires => {'DBD::mysql' => '== 4.051', 'DateTime::Format::MySQL' => '0.06'}}}
},
jsonrpc => {
description => 'JSON-RPC Interface',
prereqs => {
runtime =>
{requires => {'JSON::RPC' => '== 1.01', 'Test::Taint' => '1.06'}}
}
},
graphical_reports => {
description => 'Graphical Reports',
prereqs => {
Expand Down Expand Up @@ -272,13 +266,6 @@ my %optional_features = (
description => 'Patch Viewer',
prereqs => {runtime => {requires => {PatchReader => '0.9.6'}}}
},
rest => {
description => 'REST Interface',
prereqs => {
runtime =>
{requires => {'Test::Taint' => '1.06', 'JSON::RPC' => '==1.01',}}
}
},
linux_pid => {
description => 'Linux::PID',
prereqs => {runtime => {requires => {'Linux::Pid' => 0},},},
Expand Down
3 changes: 1 addition & 2 deletions cpanfile
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ requires 'IO::Async', '0.71';
requires 'IO::Compress::Gzip';
requires 'IO::Scalar';
requires 'IPC::System::Simple';
requires 'JSON';
requires 'JSON::MaybeXS', '1.003008';
requires 'JSON::RPC', '== 1.01';
requires 'JSON::Validator', '3.05';
requires 'JSON::XS', '2.0';
requires 'LWP::Protocol::https', '6.07';
Expand Down Expand Up @@ -110,7 +110,6 @@ requires 'Template::Plugin::GD::Image';
requires 'Test::CPAN::Meta';
requires 'Test::Pod';
requires 'Test::Pod::Coverage';
requires 'Test::Taint', '1.06';
requires 'Text::CSV_XS', '1.26';
requires 'Text::Diff';
requires 'Text::MultiMarkdown', '1.000034';
Expand Down
59 changes: 0 additions & 59 deletions cpanfile.snapshot
Original file line number Diff line number Diff line change
Expand Up @@ -3835,38 +3835,6 @@ DISTRIBUTIONS
JSON::PP 2.27300
Scalar::Util 0
perl 5.006
JSON-RPC-1.01
pathname: D/DM/DMAKI/JSON-RPC-1.01.tar.gz
provides:
JSON::RPC 1.01
JSON::RPC::Constants undef
JSON::RPC::Dispatch undef
JSON::RPC::Legacy undef
JSON::RPC::Legacy::Client 0.93
JSON::RPC::Legacy::Procedure 0.90
JSON::RPC::Legacy::ReturnObject 0.93
JSON::RPC::Legacy::Server 0.92
JSON::RPC::Legacy::Server::Apache2 0.05
JSON::RPC::Legacy::Server::CGI 0.92
JSON::RPC::Legacy::Server::Daemon 0.03
JSON::RPC::Legacy::Server::system 0.92
JSON::RPC::Legacy::ServiceObject 0.93
JSON::RPC::Parser undef
JSON::RPC::Procedure undef
requirements:
CGI 0
Class::Accessor::Lite 0
ExtUtils::MakeMaker 6.42
HTTP::Request 0
HTTP::Response 0
JSON 0
LWP::UserAgent 0
Plack 0
Plack::Request 0
Plack::Test 0
Router::Simple 0
Test::More 0
parent 0
JSON-Validator-5.19
pathname: J/JH/JHTHORSEN/JSON-Validator-5.19.tar.gz
provides:
Expand Down Expand Up @@ -6632,20 +6600,6 @@ DISTRIBUTIONS
requirements:
Exporter 0
perl 5.006
Router-Simple-0.17
pathname: T/TO/TOKUHIROM/Router-Simple-0.17.tar.gz
provides:
Router::Simple 0.17
Router::Simple::Declare undef
Router::Simple::Route undef
Router::Simple::SubMapper undef
requirements:
Class::Accessor::Lite 0.05
List::Util 0
Module::Build 0.38
Scalar::Util 0
parent 0
perl 5.008_001
SOAP-Lite-1.27
pathname: P/PH/PHRED/SOAP-Lite-1.27.tar.gz
provides:
Expand Down Expand Up @@ -7477,19 +7431,6 @@ DISTRIBUTIONS
Test::SharedFork 0.29
Time::HiRes 0
perl 5.008001
Test-Taint-1.08
pathname: P/PE/PETDANCE/Test-Taint-1.08.tar.gz
provides:
Test::Taint 1.08
requirements:
ExtUtils::MakeMaker 0
Scalar::Util 0
Test::Builder 0
Test::More 0
Tie::Array 0
Tie::Hash 0
Tie::Scalar 0
overload 0
Test-WWW-Selenium-1.36
pathname: M/MA/MATTP/Test-WWW-Selenium-1.36.tar.gz
provides:
Expand Down
2 changes: 1 addition & 1 deletion template/en/default/bug/create/create.html.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,7 @@ TUI_hide_default('expert_fields');
</td>
</tr>

[% IF feature_enabled('jsonrpc') AND !cloned_bug_id
[% IF !cloned_bug_id
AND user.settings.possible_duplicates.value == 'on' %]
<tr id="possible_duplicates_container" class="bz_default_hidden">
<th>Possible<br>Duplicates:</th>
Expand Down
2 changes: 1 addition & 1 deletion template/en/default/global/userselect.html.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
</select>
[% ELSE %]
[%
IF id && feature_enabled('jsonrpc') && Param('ajax_user_autocompletion');
IF id && Param('ajax_user_autocompletion');
IF !classes.defined;
classes = [];
END;
Expand Down
2 changes: 1 addition & 1 deletion template/en/default/search/form.html.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ TUI_hide_default('custom_search_query');
</select>
<input
name="email[% n %]"
class="email [% "bz_autocomplete_user" IF feature_enabled('jsonrpc') && Param('ajax_user_autocompletion') %]"
class="email [% "bz_autocomplete_user" IF Param('ajax_user_autocompletion') %]"
id="email[% n %]"
value="[% default.email.$n FILTER html %]">
</div>
Expand Down