Skip to content

Conversation

@aadarsh-st
Copy link
Collaborator

No description provided.

@github-actions
Copy link

Gitleaks Findings: No secrets detected. Safe to proceed!

@github-actions
Copy link

Semgrep Findings: Issues with Error level severity are found (Error is Highest severity in Semgrep), Please resolve the issues before merging.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes multiple issues identified in ticket SK-2510, including a bug in URL parameter replacement, improvements to error handling for HTTP responses, and enhanced error messages for bearer token validation.

Changes:

  • Fixed a bug in fillUrlWithPathAndQueryParams where only the first path parameter was being replaced
  • Enhanced error handling in connection controller to properly consume response bodies and prevent connection leaks
  • Improved bearer token error messages to clarify that tokens may be invalid or expired

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
src/utils/index.ts Fixed variable reference bug where url was used instead of filledUrl in the replace operation
test/vault/utils/utils.test.js Updated test expectation to reflect correct behavior of replacing all path parameters
src/vault/controller/connections/index.ts Enhanced error response handling with proper JSON/text parsing and body consumption
src/error/messages/index.ts Improved error messages to indicate bearer tokens may be invalid or expired

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

2 participants