Skip to content

fix: validate webhook_url before subscribing project to notifications - #2371

Closed
arijiiiitttt wants to merge 1 commit into
aboutcode-org:mainfrom
arijiiiitttt:worker-bug/issue-2206
Closed

arijiiiitttt wants to merge 1 commit into
aboutcode-org:mainfrom
arijiiiitttt:worker-bug/issue-2206

Conversation

@arijiiiitttt

@arijiiiitttt arijiiiitttt commented Nov 23, 2026 •

Copy link
Copy Markdown

Issues

Changes

  • Validated webhook_url using urllib.parse.urlparse to ensure it includes a valid http/https scheme and host before creating a webhook subscription.
  • Skipped webhook registration and recorded a warning instead of failing project creation or causing a requests connection adapter error during delivery when a relative URL is provided.
  • Added unit tests covering relative URLs and single-label Docker hostnames (e.g., http://dejacode:8000/).

Checklist

  • I have read the contributing guidelines
  • I have linked an existing issue above
  • I have added unit tests covering the new code
  • I have reviewed and understood every line of this PR

@arijiiiitttt
arijiiiitttt deleted the worker-bug/issue-2206 branch November 23, 2026 13:13
@arijiiiitttt arijiiiitttt changed the title fix: delivery Error in scan_single_package: No connection adapters were… fix: validate webhook_url before subscribing project to notifications Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Delivery Error in scan_single_package: No connection adapters were found for '/notifications/send_scan_notification/

1 participant