Skip to content

aadarsh-st/SK-2510-Fixed all the mentioned issue#279

Merged
aadarsh-st merged 3 commits intorelease/26.1.4from
SK-2510-Fix-Node-SDK-issues
Jan 29, 2026
Merged

aadarsh-st/SK-2510-Fixed all the mentioned issue#279
aadarsh-st merged 3 commits intorelease/26.1.4from
SK-2510-Fix-Node-SDK-issues

Conversation

@aadarsh-st
Copy link
Collaborator

@aadarsh-st aadarsh-st commented Jan 28, 2026

Fixed following issues:
Path parameters are not concatenated in the fillUrlWithPathAndQueryParams function.
Readers and HTTP connections are not closed after receiving responses, which may lead to resource leaks.
Enhance the error message for invalid bearer token.

@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.

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

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


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

@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.

@aadarsh-st aadarsh-st requested a review from Copilot January 29, 2026 08:24
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

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.


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

@aadarsh-st aadarsh-st changed the base branch from main to release/26.1.4 January 29, 2026 11:01
@aadarsh-st aadarsh-st merged commit bf5c1aa into release/26.1.4 Jan 29, 2026
7 checks passed
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.

3 participants