qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gmur...@apache.org
Subject [1/2] qpid-dispatch git commit: DISPATCH-1025 - Fixes user token replacement used in prefix or suffix. This closes #319
Date Tue, 12 Jun 2018 17:50:06 GMT
Repository: qpid-dispatch
Updated Branches:
  refs/heads/master 374bb687e -> 2f3d32d5b


DISPATCH-1025 - Fixes user token replacement used in prefix or suffix. This closes #319


Project: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/commit/4ce42abc
Tree: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/tree/4ce42abc
Diff: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/diff/4ce42abc

Branch: refs/heads/master
Commit: 4ce42abcac7424251ff0efe35a28500af8ef547a
Parents: 374bb68
Author: Fernando Giorgetti <fgiorget@redhat.com>
Authored: Thu Jun 7 19:16:19 2018 -0300
Committer: Ganesh Murthy <gmurthy@redhat.com>
Committed: Tue Jun 12 13:45:31 2018 -0400

----------------------------------------------------------------------
 python/qpid_dispatch_internal/policy/policy_local.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-dispatch/blob/4ce42abc/python/qpid_dispatch_internal/policy/policy_local.py
----------------------------------------------------------------------
diff --git a/python/qpid_dispatch_internal/policy/policy_local.py b/python/qpid_dispatch_internal/policy/policy_local.py
index 87f802b..9a5a1d6 100644
--- a/python/qpid_dispatch_internal/policy/policy_local.py
+++ b/python/qpid_dispatch_internal/policy/policy_local.py
@@ -330,11 +330,11 @@ class PolicyCompiler(object):
                                 # prefix
                                 eVal.append(PolicyKeys.KC_TUPLE_PREFIX)
                                 eVal.append('')
-                                eVal.append(v)
+                                eVal.append(v[v.find(utoken) + len(utoken):])
                             elif v.endswith(utoken):
                                 # suffix
                                 eVal.append(PolicyKeys.KC_TUPLE_SUFFIX)
-                                eVal.append(v)
+                                eVal.append(v[0:v.find(utoken)])
                                 eVal.append('')
                             else:
                                 # embedded


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org


Mime
View raw message