From f0a12e7a21d0bd1cfc0cd8eb2de91492fc541fa4 Mon Sep 17 00:00:00 2001 From: "James E. Blair" Date: Tue, 1 Aug 2017 16:36:43 -0700 Subject: [PATCH] Fix webapp path parsing Change-Id: I34c7b74ac276b10c516563ec85e5f8839d6b392c --- zuul/webapp.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zuul/webapp.py b/zuul/webapp.py index 712dc234ba..b9129b843c 100644 --- a/zuul/webapp.py +++ b/zuul/webapp.py @@ -133,8 +133,8 @@ class WebApp(threading.Thread): return handler(path, '', request) # Now try with a tenant_name stripped - tenant_name = request.path.split('/')[1] - path = request.path.replace('/' + tenant_name, '') + x, tenant_name, path = request.path.split('/', 2) + path = '/' + path # Handle keys if path.startswith('/keys'): try: