Skip to content

Remove error stacktrace from failure collector#355

Open
harishhk107 wants to merge 1 commit into
data-integrations:developfrom
cloudsufi:fix/remove-error-stacktrace
Open

Remove error stacktrace from failure collector#355
harishhk107 wants to merge 1 commit into
data-integrations:developfrom
cloudsufi:fix/remove-error-stacktrace

Conversation

@harishhk107
Copy link
Copy Markdown
Contributor

@harishhk107 harishhk107 commented May 17, 2026

During configuration validation in SalesforceSourceConfig and SalesforceConnectionUtil, attaching a Java exception stack trace (.withStacktrace()) to validation failures caused the hosting runtime (Connectors Service) to classify user configuration errors as internal system faults.

Removing .withStacktrace() consistently across these validation call sites ensures the runtime correctly treats configuration failures as standard user errors, successfully propagating exact Salesforce error messages and error IDs to the client.

This stack trace was exposing a lot of user information which is not required to debug or get the root cause of the issue.

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request removes the stack trace from a validation failure message in SalesforceSourceConfig.java when a ConnectionException is encountered. The review feedback points out that this change introduces an inconsistency with other error handling blocks in the same class and related utility files, suggesting that the removal of stack traces should be applied consistently across all relevant call sites for a uniform user experience.

@harishhk107 harishhk107 force-pushed the fix/remove-error-stacktrace branch from b440927 to d085f8e Compare May 17, 2026 09:35
@harishhk107 harishhk107 changed the title fix/reomve error stacktrace fix/remove error stacktrace May 17, 2026
@harishhk107 harishhk107 force-pushed the fix/remove-error-stacktrace branch from d085f8e to c9fa4b5 Compare May 17, 2026 09:40
@vikasrathee-cs vikasrathee-cs changed the title fix/remove error stacktrace Remove error stacktrace from failure collector May 20, 2026
@vikasrathee-cs vikasrathee-cs force-pushed the fix/remove-error-stacktrace branch from c9fa4b5 to 05f84c6 Compare May 20, 2026 17:00
@vikasrathee-cs vikasrathee-cs force-pushed the fix/remove-error-stacktrace branch from 05f84c6 to c1e11ab Compare May 21, 2026 06:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants