You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by jp...@apache.org on 2015/02/25 01:49:15 UTC
trafficserver git commit: TS-3358: unprivileged allow record get
Repository: trafficserver
Updated Branches:
refs/heads/master a265c8ba4 -> ef9bd671b
TS-3358: unprivileged allow record get
Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/ef9bd671
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/ef9bd671
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/ef9bd671
Branch: refs/heads/master
Commit: ef9bd671b4556c9b584da950204b64563da708b7
Parents: a265c8b
Author: James Peach <jp...@apache.org>
Authored: Tue Feb 24 16:09:05 2015 -0800
Committer: James Peach <jp...@apache.org>
Committed: Tue Feb 24 16:36:15 2015 -0800
----------------------------------------------------------------------
mgmt/RecordsConfig.cc | 2 +-
mgmt/api/TSControlMain.cc | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/trafficserver/blob/ef9bd671/mgmt/RecordsConfig.cc
----------------------------------------------------------------------
diff --git a/mgmt/RecordsConfig.cc b/mgmt/RecordsConfig.cc
index 0b86350..4887a28 100644
--- a/mgmt/RecordsConfig.cc
+++ b/mgmt/RecordsConfig.cc
@@ -261,7 +261,7 @@ static const RecordElement RecordsConfig[] =
,
{RECT_CONFIG, "proxy.config.admin.cli_path", RECD_STRING, "cli", RECU_NULL, RR_NULL, RECC_NULL, NULL, RECA_NULL}
,
- {RECT_CONFIG, "proxy.config.admin.api.restricted", RECD_INT, "1", RECU_RESTART_TM, RR_NULL, RECC_NULL, NULL, RECA_NULL}
+ {RECT_CONFIG, "proxy.config.admin.api.restricted", RECD_INT, "1", RECU_RESTART_TM, RR_NULL, RECC_INT, "[0-1]", RECA_NULL}
,
//##############################################################################
http://git-wip-us.apache.org/repos/asf/trafficserver/blob/ef9bd671/mgmt/api/TSControlMain.cc
----------------------------------------------------------------------
diff --git a/mgmt/api/TSControlMain.cc b/mgmt/api/TSControlMain.cc
index 495287d..2120e3e 100644
--- a/mgmt/api/TSControlMain.cc
+++ b/mgmt/api/TSControlMain.cc
@@ -981,7 +981,7 @@ static const control_message_handler handlers[] = {
/* FILE_READ */ { MGMT_API_PRIVILEGED, handle_file_read },
/* FILE_WRITE */ { MGMT_API_PRIVILEGED, handle_file_write },
/* RECORD_SET */ { MGMT_API_PRIVILEGED, handle_record_set },
- /* RECORD_GET */ { MGMT_API_PRIVILEGED, handle_record_get },
+ /* RECORD_GET */ { 0, handle_record_get },
/* PROXY_STATE_GET */ { 0, handle_proxy_state_get },
/* PROXY_STATE_SET */ { MGMT_API_PRIVILEGED, handle_proxy_state_set },
/* RECONFIGURE */ { MGMT_API_PRIVILEGED, handle_reconfigure },