From ac78f4a7ee1025c5068c0789e65783109a4a220e Mon Sep 17 00:00:00 2001 From: Amirouche BOUBEKKI Date: Fri, 1 Dec 2023 16:53:51 +0100 Subject: [PATCH] fix(integrations): remove any trailing slash in url. --- api/routers/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/routers/core.py b/api/routers/core.py index 7fc7ae633..7821edc28 100644 --- a/api/routers/core.py +++ b/api/routers/core.py @@ -333,7 +333,7 @@ def get_integration_status_github(context: schemas.CurrentContext = Depends(OR_c @app.post('/integrations/jira', tags=["integrations"]) def add_edit_jira_cloud(data: schemas.IssueTrackingJiraSchema = Body(...), context: schemas.CurrentContext = Depends(OR_context)): - if not str(data.url).endswith('atlassian.net'): + if not str(data.url).rstrip('/').endswith('atlassian.net'): return {"errors": ["url must be a valid JIRA URL (example.atlassian.net)"]} error, integration = integrations_manager.get_integration(tool=integration_jira_cloud.PROVIDER, tenant_id=context.tenant_id,