summaryrefslogtreecommitdiffstats
path: root/template
diff options
context:
space:
mode:
authorMax Kanat-Alexander <mkanat@bugzilla.org>2010-04-22 20:52:45 +0200
committerMax Kanat-Alexander <mkanat@bugzilla.org>2010-04-22 20:52:45 +0200
commit5bb84b3c6efc503652a14e59efbe2b7c548608dd (patch)
treec75323c210888cc942678f892dc0b84cbf868410 /template
parentd8e899bace75e1f4bd99443baaeaebac8b819251 (diff)
downloadbugzilla-5bb84b3c6efc503652a14e59efbe2b7c548608dd.tar.gz
bugzilla-5bb84b3c6efc503652a14e59efbe2b7c548608dd.tar.xz
Bug 550732: Allow read-only JSON-RPC methods to be called with GET
r=dkl, a=mkanat
Diffstat (limited to 'template')
-rw-r--r--template/en/default/global/user-error.html.tmpl14
1 files changed, 12 insertions, 2 deletions
diff --git a/template/en/default/global/user-error.html.tmpl b/template/en/default/global/user-error.html.tmpl
index 033410ee0..d866f301d 100644
--- a/template/en/default/global/user-error.html.tmpl
+++ b/template/en/default/global/user-error.html.tmpl
@@ -979,9 +979,19 @@
[%+ constants.LOGIN_LOCKOUT_INTERVAL FILTER html %] minutes.
[% END %]
+ [% ELSIF error == "json_rpc_get_method_required" %]
+ When using JSON-RPC over GET, you must specify a 'method'
+ parameter. See the documentation at
+ [%+ docs_urlbase FILTER html %]api/Bugzilla/WebService/Server/JSONRPC.html
+
+ [% ELSIF error == "json_rpc_invalid_params" %]
+ Could not parse the 'params' argument as valid JSON.
+ Error: [% err_msg FILTER html %]
+ Value: [% params FILTER html %]
+
[% ELSIF error == "json_rpc_post_only" %]
- For security reasons, you may only use JSON-RPC with the POST
- HTTP method.
+ For security reasons, you may only call the '[% method FILTER html %]'
+ method via HTTP POST.
[% ELSIF error == "keyword_already_exists" %]
[% title = "Keyword Already Exists" %]