Skip to content

fix: correct basic message connectionId error - #1771

Open
shivansh45334 wants to merge 86 commits into
credebl:mainfrom
shivansh45334:fix-1229-basic-message-error
Open

shivansh45334 wants to merge 86 commits into
credebl:mainfrom
shivansh45334:fix-1229-basic-message-error

Conversation

@shivansh45334

@shivansh45334 shivansh45334 commented Oct 3, 2026 •

Copy link
Copy Markdown

Description

Fixes the incorrect validation error message returned when an invalid
connectionId is provided to the basic message endpoint.

Changes

  • Added a dedicated error message for invalid connectionId values in the basic message endpoint.
  • Updated the basic message controller to use the new error message.
  • Preserved the existing connectionId validation message for other endpoints.

One important point: I did not change the shared invalidConnectionId message, because that message is also used by the normal connection-details endpoint. I instead introduced a dedicated message for the basic-message endpoint, keeping the change narrowly scoped.

Issue

Closes #1229

Summary by CodeRabbit

  • Bug Fixes
    • Invalid connection IDs in basic message requests now return a specific error asking for a valid connection ID.

sujitaw and others added 30 commits June 16, 2026 13:57
Signed-off-by: sujitaw <sujit.sutar@ayanworks.com>
Signed-off-by: sujitaw <sujit.sutar@ayanworks.com>
Signed-off-by: sujitaw <sujit.sutar@ayanworks.com>
Signed-off-by: sujitaw <sujit.sutar@ayanworks.com>
Signed-off-by: sujitaw <sujit.sutar@ayanworks.com>
Signed-off-by: sujitaw <sujit.sutar@ayanworks.com>
Signed-off-by: sujitaw <sujit.sutar@ayanworks.com>
Bumps [nodemailer](https://github.com/nodemailer/nodemailer) from 7.0.13 to 9.0.1.
- [Release notes](https://github.com/nodemailer/nodemailer/releases)
- [Changelog](https://github.com/nodemailer/nodemailer/blob/master/CHANGELOG.md)
- [Commits](nodemailer/nodemailer@v7.0.13...v9.0.1)

---
updated-dependencies:
- dependency-name: nodemailer
  dependency-version: 9.0.1
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: sujitaw <sujit.sutar@ayanworks.com>
Signed-off-by: sujitaw <sujit.sutar@ayanworks.com>
Signed-off-by: sujitaw <sujit.sutar@ayanworks.com>
Signed-off-by: sujitaw <sujit.sutar@ayanworks.com>
Signed-off-by: sujitaw <sujit.sutar@ayanworks.com>
Signed-off-by: sujitaw <sujit.sutar@ayanworks.com>
Signed-off-by: sujitaw <sujit.sutar@ayanworks.com>
Signed-off-by: sujitaw <sujit.sutar@ayanworks.com>
Signed-off-by: sujitaw <sujit.sutar@ayanworks.com>
Signed-off-by: sujitaw <sujit.sutar@ayanworks.com>
Signed-off-by: sujitaw <sujit.sutar@ayanworks.com>
Signed-off-by: sujitaw <sujit.sutar@ayanworks.com>
Signed-off-by: M Abdullah <insights.abdullah@gmail.com>
Signed-off-by: M Abdullah <insights.abdullah@gmail.com>
Fix: successful response for empty attributes when creating shortening URLs
* empty attribute response

Signed-off-by: M Abdullah <insights.abdullah@gmail.com>
Signed-off-by: Tipu_Singh <tipu.singh@ayanworks.com>

* match issuance pattern

Signed-off-by: M Abdullah <insights.abdullah@gmail.com>
Signed-off-by: Tipu_Singh <tipu.singh@ayanworks.com>

---------

Signed-off-by: M Abdullah <insights.abdullah@gmail.com>
Signed-off-by: Tipu_Singh <tipu.singh@ayanworks.com>
Co-authored-by: M Abdullah <insights.abdullah@gmail.com>
Bumps [body-parser](https://github.com/expressjs/body-parser) from 1.20.5 to 1.20.6.
- [Release notes](https://github.com/expressjs/body-parser/releases)
- [Changelog](https://github.com/expressjs/body-parser/blob/master/HISTORY.md)
- [Commits](expressjs/body-parser@1.20.5...1.20.6)

---
updated-dependencies:
- dependency-name: body-parser
  dependency-version: 1.20.6
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [typeorm](https://github.com/typeorm/typeorm) from 0.3.28 to 0.3.31.
- [Release notes](https://github.com/typeorm/typeorm/releases)
- [Changelog](https://github.com/typeorm/typeorm/blob/0.3.31/CHANGELOG.md)
- [Commits](typeorm/typeorm@0.3.28...0.3.31)

---
updated-dependencies:
- dependency-name: typeorm
  dependency-version: 0.3.31
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: sujitaw <sujit.sutar@ayanworks.com>
Bumps redis from 6.2-alpine to 8.0-alpine.

---
updated-dependencies:
- dependency-name: redis
  dependency-version: 8.0-alpine
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
…e/main/redis-8.0-alpine

build: bump redis from 6.2-alpine to 8.0-alpine
…typeorm-0.3.31

chore(deps): bump typeorm from 0.3.28 to 0.3.31
vaishnavijha12 and others added 25 commits August 19, 2026 18:30
…l#1608)

* Enhance Swagger setup with API filtering and grouping

Added a helper function to filter APIs by tags and created separate Swagger documents for different API groups.

Signed-off-by: Kumari Vaishnavi <145796948+vaishnavijha12@users.noreply.github.com>

* fix: correct swagger tag names for proper API grouping

Signed-off-by: Kumari Vaishnavi <145796948+vaishnavijha12@users.noreply.github.com>

* refactor: improve filterByTags typing and fix import placement

Signed-off-by: Kumari Vaishnavi <145796948+vaishnavijha12@users.noreply.github.com>

* fix: address review feedback on Swagger grouping

Signed-off-by: Tipu_Singh <tipu.singh@ayanworks.com>

---------

Signed-off-by: Kumari Vaishnavi <145796948+vaishnavijha12@users.noreply.github.com>
Signed-off-by: Tipu_Singh <tipu.singh@ayanworks.com>
Co-authored-by: Tipu_Singh <tipu.singh@ayanworks.com>
Signed-off-by: shitrerohit <rohit.shitre@ayanworks.com>
…ion handling

Signed-off-by: shitrerohit <rohit.shitre@ayanworks.com>
…tation-response

fix: update invitation creation to return org_invitations array
* fix: redirect swagger fixed

Signed-off-by: joaoMiraya <joaomiraya01@gmail.com>

* fix: set env var to expose swagger endpoint

Signed-off-by: joaoMiraya <joaomiraya01@gmail.com>

* fix: fix redirect status and bool check

Signed-off-by: joaoMiraya <joaomiraya01@gmail.com>

* chore: add env var on .env.demo

Signed-off-by: joaoMiraya <joaomiraya01@gmail.com>

---------

Signed-off-by: joaoMiraya <joaomiraya01@gmail.com>
Signed-off-by: João  Victor B Miraya <108498460+joaoMiraya@users.noreply.github.com>
Bumps [pnpm/action-setup](https://github.com/pnpm/action-setup) from 4.3.0 to 6.0.10.
- [Release notes](https://github.com/pnpm/action-setup/releases)
- [Commits](pnpm/action-setup@b906aff...0977fd9)

---
updated-dependencies:
- dependency-name: pnpm/action-setup
  dependency-version: 6.0.10
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [nodemailer](https://github.com/nodemailer/nodemailer) from 9.0.5 to 9.1.1.
- [Release notes](https://github.com/nodemailer/nodemailer/releases)
- [Changelog](https://github.com/nodemailer/nodemailer/blob/master/CHANGELOG.md)
- [Commits](nodemailer/nodemailer@v9.0.5...v9.1.1)

---
updated-dependencies:
- dependency-name: nodemailer
  dependency-version: 9.1.1
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [qs](https://github.com/ljharb/qs) from 6.15.3 to 6.16.0.
- [Changelog](https://github.com/ljharb/qs/blob/main/CHANGELOG.md)
- [Commits](ljharb/qs@v6.15.3...v6.16.0)

---
updated-dependencies:
- dependency-name: qs
  dependency-version: 6.16.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…debl#1742)

Add unit coverage for CommonService error translation (handleCommonErrors,
sendError, filterResponse) and extend the integration suite with real
PATCH/PUT/DELETE, 4xx error mapping, and proxy/NO_PROXY cases, so the
axios 1.20 backed HTTP client is guarded in CI. Remove the now-healthy
common.service.spec from the jest CI exclusion list.

Fix sendError() throwing a TypeError when error.response is undefined by
using optional chaining, falling back to a 500 HttpException.

Signed-off-by: Ajay Jadhav <ajay@ayanworks.com>
Bumps [axios](https://github.com/axios/axios) from 0.26.1 to 1.20.0.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md)
- [Commits](axios/axios@v0.26.1...v1.20.0)

---
updated-dependencies:
- dependency-name: axios
  dependency-version: 1.20.0
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Guard all error dereferences in sendError so an undefined argument does
not throw a TypeError before the 500 fallback. Add a regression test for
service.sendError(undefined). Addresses CodeRabbit feedback on credebl#1742.

Signed-off-by: Ajay Jadhav <ajay@ayanworks.com>
Address all 7 SonarQube security hotspots reported on main:

- typescript:S5332 (2): use https:// in the @ApiProperty examples of
  configure-base-wallet.dto.ts and update-revocation-registry.dto.ts
- githubactions:S7637 (4): pin setup-qemu-action, setup-buildx-action,
  login-action and build-push-action to full commit SHAs instead of
  mutable v3/v6 tags
- docker:S6470 (1): expand .dockerignore to exclude version control,
  local env/secrets (agent.env, .env*), build artifacts and docs so the
  recursive COPY in Dockerfile.seed no longer risks leaking sensitive data

Also add a local eslint-disable-next-line camelcase for the intentionally
snake-cased revoc_reg_id contract field which was blocking the pre-commit
hook.

Signed-off-by: Ajay Jadhav <ajay@ayanworks.com>
…first

Signed-off-by: shitrerohit <rohit.shitre@ayanworks.com>
…-invitation

fix(invitation): update logic to fetch last invitationDid instead of first
Bumps the minor-actions group with 1 update: [pnpm/action-setup](https://github.com/pnpm/action-setup).


Updates `pnpm/action-setup` from 6.0.10 to 6.1.0
- [Release notes](https://github.com/pnpm/action-setup/releases)
- [Commits](pnpm/action-setup@0977fd9...ea17c68)

---
updated-dependencies:
- dependency-name: pnpm/action-setup
  dependency-version: 6.1.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-actions
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action) from 3.12.0 to 4.3.0.
- [Release notes](https://github.com/docker/setup-buildx-action/releases)
- [Commits](docker/setup-buildx-action@8d2750c...37fe631)

---
updated-dependencies:
- dependency-name: docker/setup-buildx-action
  dependency-version: 4.3.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 6.19.2 to 7.3.0.
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](docker/build-push-action@10e90e3...53b7df9)

---
updated-dependencies:
- dependency-name: docker/build-push-action
  dependency-version: 7.3.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [docker/login-action](https://github.com/docker/login-action) from 3.7.0 to 4.6.0.
- [Release notes](https://github.com/docker/login-action/releases)
- [Commits](docker/login-action@c94ce9f...dbcb813)

---
updated-dependencies:
- dependency-name: docker/login-action
  dependency-version: 4.6.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [docker/setup-qemu-action](https://github.com/docker/setup-qemu-action) from 3.7.0 to 4.3.0.
- [Release notes](https://github.com/docker/setup-qemu-action/releases)
- [Commits](docker/setup-qemu-action@c7c5346...1f40c72)

---
updated-dependencies:
- dependency-name: docker/setup-qemu-action
  dependency-version: 4.3.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps the patch-updates group with 1 update: [morgan](https://github.com/expressjs/morgan).


Updates `morgan` from 1.12.0 to 1.12.1
- [Release notes](https://github.com/expressjs/morgan/releases)
- [Changelog](https://github.com/expressjs/morgan/blob/master/HISTORY.md)
- [Commits](expressjs/morgan@1.12.0...1.12.1)

---
updated-dependencies:
- dependency-name: morgan
  dependency-version: 1.12.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: patch-updates
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps the minor-actions group with 3 updates: [docker/setup-qemu-action](https://github.com/docker/setup-qemu-action), [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action) and [docker/build-push-action](https://github.com/docker/build-push-action).


Updates `docker/setup-qemu-action` from 4.3.0 to 4.4.0
- [Release notes](https://github.com/docker/setup-qemu-action/releases)
- [Commits](docker/setup-qemu-action@1f40c72...9901266)

Updates `docker/setup-buildx-action` from 4.3.0 to 4.4.1
- [Release notes](https://github.com/docker/setup-buildx-action/releases)
- [Commits](docker/setup-buildx-action@37fe631...f87e599)

Updates `docker/build-push-action` from 7.3.0 to 7.4.0
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](docker/build-push-action@53b7df9...c3c9e26)

---
updated-dependencies:
- dependency-name: docker/setup-qemu-action
  dependency-version: 4.4.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-actions
- dependency-name: docker/setup-buildx-action
  dependency-version: 4.4.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-actions
- dependency-name: docker/build-push-action
  dependency-version: 7.4.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-actions
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [multer](https://github.com/expressjs/multer) from 2.3.0 to 2.4.0.
- [Release notes](https://github.com/expressjs/multer/releases)
- [Changelog](https://github.com/expressjs/multer/blob/main/CHANGELOG.md)
- [Commits](expressjs/multer@v2.3.0...v2.4.0)

---
updated-dependencies:
- dependency-name: multer
  dependency-version: 2.4.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
@coderabbitai

coderabbitai Bot commented Oct 3, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 50 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 442d3568-f293-46c2-8875-559dfbae93ff
📥 Commits

Reviewing files that changed from the base of the PR and between 03aeb71 and 47d7761.

📒 Files selected for processing (2)
  • apps/api-gateway/src/connection/connection.controller.ts
  • libs/common/src/response-messages/index.ts

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 23395d41-e797-4ba8-891d-4992e3d5642e
📥 Commits

Reviewing files that changed from the base of the PR and between 3046294 and 03aeb71.

📒 Files selected for processing (2)
  • apps/api-gateway/src/connection/connection.controller.ts
  • libs/common/src/response-messages/index.ts

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.


📝 Walkthrough

Walkthrough

The basic-message endpoint now returns a dedicated error message when the connectionId UUID validation fails.

Changes

Basic message connection ID error

Layer / File(s) Summary
Basic-message UUID validation error
libs/common/src/response-messages/index.ts, apps/api-gateway/src/connection/connection.controller.ts
The connection error messages include invalidBasicMessageConnectionId. The endpoint uses this message when UUID validation fails.

Priority: ⬇️ Low

Estimated code review effort: 1 (Trivial) | ~5 minutes

Change: Bug fix · Severity of issue fixed: Low

Merge Risk: ⚪ Minimal · up to 03aeb

The basic-message endpoint now returns a more specific error message when connectionId is invalid. Other endpoints keep their existing message. No merge-blocking risk was found.

🚥 Pre-merge checks | ✅ 4 | ❓ 1

❌ Failed checks (1 inconclusive)

Check name Status Explanation Resolution
Linked Issues check ❓ Inconclusive Issue [#1229] requires a 400 response with the exact message “Please provide valid connectionId” for an invalid basic-message connectionId. The change summary confirms that sendBasicMessage now thro… Provide reviewable evidence of the invalidBasicMessageConnectionId message value to confirm that it exactly matches the wording required by issue #1229.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly identifies the fix to the basic message connectionId error.
Out of Scope Changes check ✅ Passed The change summary lists only the dedicated basic-message error message and its use in the basic-message controller. Both changes directly implement issue [#1229]. No unrelated changes are indicated.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 2…
Full details: Linked Issues check

Explanation

Issue [#1229] requires a 400 response with the exact message “Please provide valid connectionId” for an invalid basic-message connectionId. The change summary confirms that sendBasicMessage now throws BadRequestException with the dedicated invalidBasicMessageConnectionId message. The controller source also shows that the normal connection-details endpoint still uses invalidConnectionId. The exact value of the new message is not visible in the available source output, so I cannot confirm the required wording.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create a new PR
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Signed-off-by: Shivansh <shivansh45334@gamil.com>
@shivansh45334
shivansh45334 force-pushed the fix-1229-basic-message-error branch from 03aeb71 to 47d7761 Compare October 3, 2026 06:32
@sonarqubecloud

sonarqubecloud Bot commented Oct 3, 2026

Copy link
Copy Markdown

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.

fix: Incorrect error message when space is provided in 'connectionId' parameter

8 participants