diff options
author | Albin Vass <albin.vass@zenseact.com> | 2022-08-23 13:03:49 +0200 |
---|---|---|
committer | Albin Vass <albin.vass@zenseact.com> | 2022-08-23 13:21:25 +0200 |
commit | 9e88f8e5cb5f54a0f304f6b94898f943b1b53fcc (patch) | |
tree | 28c57644a3eea9521655d0dd61f9887b8183dc73 /zuul | |
parent | 7491e081bd1e08defd98245489e50604d317b6aa (diff) | |
download | zuul-9e88f8e5cb5f54a0f304f6b94898f943b1b53fcc.tar.gz |
Fix links for jobs with special characters
Change-Id: I12e8a056a2e5cd1bb18c1f24ecd7db55405f0a8c
Diffstat (limited to 'zuul')
-rwxr-xr-x | zuul/web/__init__.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/zuul/web/__init__.py b/zuul/web/__init__.py index f06dd0b52..644b82bec 100755 --- a/zuul/web/__init__.py +++ b/zuul/web/__init__.py @@ -32,6 +32,7 @@ import ssl import threading import uuid import prometheus_client +import urllib.parse import zuul.executor.common from zuul import exceptions @@ -1170,6 +1171,7 @@ class ZuulWebAPI(object): @cherrypy.tools.json_out( content_type='application/json; charset=utf-8', handler=json_handler) def job(self, tenant_name, job_name): + job_name = urllib.parse.unquote_plus(job_name) tenant = self._getTenantOrRaise(tenant_name) job_variants = tenant.layout.jobs.get(job_name) result = [] |