Skip to content

CORE-208: include stack traces in InvalidPfbExceptions#82

Merged
davidangb merged 1 commit intomainfrom
da_CORE-208_exceptionDetails
Dec 4, 2024
Merged

CORE-208: include stack traces in InvalidPfbExceptions#82
davidangb merged 1 commit intomainfrom
da_CORE-208_exceptionDetails

Conversation

@davidangb
Copy link
Copy Markdown
Collaborator

When reading the nodes of a PFB, we may throw InvalidPfbException. When we threw that, we omitted the stack trace. This makes debugging inside cWDS pretty hard; we can't see the underlying error that caused the problem.

This is a small PR to include the underlying cause in those exceptions.

@davidangb davidangb requested a review from a team as a code owner December 4, 2024 21:03
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Dec 4, 2024

@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Dec 4, 2024

Copy link
Copy Markdown

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

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

Benchmark

Details
Benchmark suite Current: 3643595 Previous: 68dcbd4 Ratio
bio.terra.pfb.LibraryBenchmarks.showNodesMedium 1933.7613395079065 ops/s 1859.7220972334542 ops/s 1.04
bio.terra.pfb.LibraryBenchmarks.showNodesSmall 24861.837612940726 ops/s 24782.004073882654 ops/s 1.00
bio.terra.pfb.PfbReaderBenchmarks.convertEnum 5260558.121848094 ops/s 5256141.2115673125 ops/s 1.00

This comment was automatically generated by workflow using github-action-benchmark.

Copy link
Copy Markdown
Contributor

@calypsomatic calypsomatic left a comment

Choose a reason for hiding this comment

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

Did we have good security reasons for omitting the stack trace?

@davidangb
Copy link
Copy Markdown
Collaborator Author

Did we have good security reasons for omitting the stack trace?

We shouldn't bubble up a stack trace to the user. But, that'll be WDS's job to scrub; here in the library we're not doing anything user-facing. We didn't even give WDS the option to hide or display the stack trace!

@davidangb davidangb merged commit a9169fc into main Dec 4, 2024
@davidangb davidangb deleted the da_CORE-208_exceptionDetails branch December 4, 2024 21:10
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