You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by zw...@apache.org on 2013/03/09 01:48:37 UTC
[5/50] git commit: TS-1716: authproxy fails to reserve an argument
index in global mode
TS-1716: authproxy fails to reserve an argument index in global mode
Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/07ff3998
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/07ff3998
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/07ff3998
Branch: refs/heads/3.3.x
Commit: 07ff39981e968a3a3985796c7afa22eb2568f8a2
Parents: c665051
Author: James Peach <jp...@apache.org>
Authored: Wed Feb 20 20:11:48 2013 -0800
Committer: James Peach <jp...@apache.org>
Committed: Wed Feb 20 20:11:48 2013 -0800
----------------------------------------------------------------------
CHANGES | 3 +++
plugins/experimental/authproxy/authproxy.cc | 4 ++++
2 files changed, 7 insertions(+), 0 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/trafficserver/blob/07ff3998/CHANGES
----------------------------------------------------------------------
diff --git a/CHANGES b/CHANGES
index 01c2928..541cea0 100644
--- a/CHANGES
+++ b/CHANGES
@@ -1,6 +1,9 @@
-*- coding: utf-8 -*-
Changes with Apache Traffic Server 3.3.1
+
+ *) [TS-1716] authproxy fails to reserve an argument index in global mode
+
*) [TS-1710] esi plugin enhancement such as support forward proxy
Author: Yu Qing <zh...@taobao.com>
http://git-wip-us.apache.org/repos/asf/trafficserver/blob/07ff3998/plugins/experimental/authproxy/authproxy.cc
----------------------------------------------------------------------
diff --git a/plugins/experimental/authproxy/authproxy.cc b/plugins/experimental/authproxy/authproxy.cc
index 434dd60..6479976 100644
--- a/plugins/experimental/authproxy/authproxy.cc
+++ b/plugins/experimental/authproxy/authproxy.cc
@@ -773,6 +773,10 @@ TSPluginInit(int argc, const char *argv[])
AuthLogError("plugin registration failed");
}
+ TSReleaseAssert(
+ TSHttpArgIndexReserve("AuthProxy", "AuthProxy authorization tag", &AuthTaggedRequestArg) == TS_SUCCESS
+ );
+
// We are in global mode. Authorize all requests.
AuthTaggedRequestOnly = false;