You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When http.NewRequestWithContext fails for all Jira API URL candidates inside ValidateJiraToken (e.g. because the provided URL is malformed), the loop silently swallows every error via continue. Because sawHTTPResponse and lastNetErr are never set, the function falls through to return true, nil, falsely reporting a broken Jira URL as a valid connection.
This is a pre-existing issue, separate from the client.Do() / *url.Error fix landed in #1062.
Relevant code path in components/backend/handlers/integration_validation.go:
req, err:=http.NewRequestWithContext(ctx, "GET", apiURL, nil)
iferr!=nil {
continue// error is lost; client.Do() never runs
}
Steps to reproduce
Call ValidateJiraToken with a malformed URL (e.g. "://bad"), a non-empty email, and a non-empty API token:
We might drop this if we rewrite Jira support to use OAuth instead of personal access tokens. Maybe we will remove the "choose your own Jira URL" text field altogether.
AI Triage: Created child session session-6b90338f-d6a6-4649-8c5a-a0bf5fb9bb2c to investigate and fix this. The session will capture the request-construction error in ValidateJiraToken and add a regression test.
Activity
ktdreyer commentedon Mar 27, 2026
We might drop this if we rewrite Jira support to use OAuth instead of personal access tokens. Maybe we will remove the "choose your own Jira URL" text field altogether.
ambient-code commentedon Apr 3, 2026
AI Triage: Created child session
session-6b90338f-d6a6-4649-8c5a-a0bf5fb9bb2cto investigate and fix this. The session will capture the request-construction error inValidateJiraTokenand add a regression test.Triaged by AI orchestrator.
fix: return error when ValidateJiraToken receives malformed URL
fix: return error when ValidateJiraToken receives malformed URL (#1186)