Skip to content

fix: stop swallowing exceptions in ChannelManager and CollectionTOCUtil#1190

Open
pallakartheekreddy wants to merge 1 commit intocloud-store-refactoringfrom
refactor/fix-swallowed-exceptions
Open

fix: stop swallowing exceptions in ChannelManager and CollectionTOCUtil#1190
pallakartheekreddy wants to merge 1 commit intocloud-store-refactoringfrom
refactor/fix-swallowed-exceptions

Conversation

@pallakartheekreddy
Copy link
Collaborator

Three exception catch blocks were silently discarding failures, making problems invisible at runtime:

  • ChannelManager.populateDefaultersForCreation: replaced System.out.println with TelemetryManager.error so category-fetch failures appear in logs. Intentional graceful-continue behaviour is preserved (defaults already applied via putIfAbsent before the try block).

  • CollectionTOCUtil.validateDIALCodes: returning an empty list on parse failure caused all DIAL codes to appear valid even when the response could not be read. Now logs the error and re-throws a typed ServerException so callers know validation failed.

  • CollectionTOCUtil.searchLinkedContents: returning an empty list on parse failure silently dropped linked-content results. Now logs the error and re-throws a typed ServerException so callers can handle the failure.

Three exception catch blocks were silently discarding failures, making
problems invisible at runtime:

- ChannelManager.populateDefaultersForCreation: replaced System.out.println
  with TelemetryManager.error so category-fetch failures appear in logs.
  Intentional graceful-continue behaviour is preserved (defaults already
  applied via putIfAbsent before the try block).

- CollectionTOCUtil.validateDIALCodes: returning an empty list on parse
  failure caused all DIAL codes to appear valid even when the response
  could not be read. Now logs the error and re-throws a typed
  ServerException so callers know validation failed.

- CollectionTOCUtil.searchLinkedContents: returning an empty list on parse
  failure silently dropped linked-content results. Now logs the error and
  re-throws a typed ServerException so callers can handle the failure.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@coderabbitai
Copy link

coderabbitai bot commented Feb 26, 2026

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch refactor/fix-swallowed-exceptions

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 and usage tips.

@sonarqubecloud
Copy link

@github-actions
Copy link

SonarCloud Analysis Results 🔍

Quality Gate Results for Services:

Please review the analysis results for each service. Ensure all quality gates are passing before merging.

Base automatically changed from develop to cloud-store-refactoring February 27, 2026 10:13
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