Skip to content

fix(jira-data-center): update domain pattern for Jira Data Center #6135

Merged
hassan254-prog merged 2 commits into
NangoHQ:masterfrom
kishenpateldotwork:fix/jira-data-center-url-pattern
May 14, 2026
Merged

fix(jira-data-center): update domain pattern for Jira Data Center #6135
hassan254-prog merged 2 commits into
NangoHQ:masterfrom
kishenpateldotwork:fix/jira-data-center-url-pattern

Conversation

@kishenpateldotwork
Copy link
Copy Markdown
Contributor

Modified the regex pattern for the domain field in the Jira Data Center configuration to allow for a more flexible URL structure, accommodating optional port numbers and path segments. E.g. for customers who are using APIM or similar rewrites.

The pattern ^[a-zA-Z0-9.-]+(:\d+(/[a-zA-Z0-9.-]*)?)?$ only allows a path segment after a port, and even then just one segment of [a-zA-Z0-9.-] chars. So staging.customer.com/staging/external fails because there's no :port before the path, and /staging/external is two segments anyway.

This pattern would cover both the current cases and the APIM case:

^[a-zA-Z0-9.-]+(:\d+)?(/[a-zA-Z0-9._~-]+)*/?$

Breakdown:
[a-zA-Z0-9.-]+ — host (unchanged)
(:\d+)? — optional port (relaxed: no longer requires a path to follow)
(/[a-zA-Z0-9._~-]+)* — zero or more path segments, each allowing the usual safe URL chars
/?$ — optional trailing slash

That would accept:
jira.company.com
jira.company.com:8080
jira.company.com:8080/jira ✅ (already worked)
staging.customer.com/staging/external ✅ (the APIM case)
staging.customer.com/staging/external/

https://nango-community.slack.com/archives/C079A04T89L/p1778607496672159

…ount

Modified the regex pattern for the domain field in the Jira Data Center configuration to allow for a more flexible URL structure, accommodating optional port numbers and path segments. E.g. for customers who are using APIM or similar rewrites.
@superagent-security superagent-security Bot added contributor:verified Contributor passed trust analysis. pr:verified PR passed security analysis. labels May 13, 2026
Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

@hassan254-prog hassan254-prog enabled auto-merge May 14, 2026 14:27
@hassan254-prog hassan254-prog added this pull request to the merge queue May 14, 2026
Merged via the queue into NangoHQ:master with commit e6d6cf1 May 14, 2026
23 of 24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

contributor:verified Contributor passed trust analysis. pr:verified PR passed security analysis.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants