Skip to content

Do not expose internal error codes to client #5010

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

morgando
Copy link
Contributor

@morgando morgando commented Feb 11, 2025

Remove internal error codes hardcoded into client error messages.

@morgando morgando marked this pull request as draft February 11, 2025 19:17
@morgando morgando changed the title Remove ERR_VERIFY value from client error messages Do not expose internal error codes to client Feb 11, 2025
@morgando morgando marked this pull request as ready for review February 11, 2025 19:51
Signed-off-by: Morgan Douglas <[email protected]>

Extend

Signed-off-by: Morgan Douglas <[email protected]>

Add func/line

Signed-off-by: Morgan Douglas <[email protected]>
errstat_cat_strf(&iq->errstat,
" unable to update record rc = %d", rc);
errstat_cat_strf(&iq->errstat," unable to update record");
logmsg(LOGMSG_ERROR, "%s:%d Failed to update record. Internal error code is %d\n",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We might need this for diagnosing an issue if we send 'generic internal error' to the client

Copy link

@roborivers roborivers left a comment

Choose a reason for hiding this comment

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

Coding style check: Error. ⚠.
Smoke testing: Success ✓.
Cbuild submission: Success ✓.
Regression testing: 10/597 tests failed ⚠.

The first 10 failing tests are:
fdb_compat
sc_timepart_multiddl_generated
yast
yast_stat4scan_generated
op_makerecord
upsert
ddl_no_csc2
max_wr_rows_partial_index_off_generated
max_wr_rows
incremental_backup_load

@morgando morgando marked this pull request as draft February 12, 2025 15:30
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