Skip to content
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

Be more specific about errors during invalid response for BLIP GetAttachment #6414

Merged

Conversation

bbrks
Copy link
Member

@bbrks bbrks commented Sep 12, 2023

Be more specific about what check failed when a peer sends invalid attachment data. Make "length" explicitly required, instead of failing when it's going to end up as a failure to do ToInt64(nil)

Testing

Already covered via TestPutInvalidAttachment

Integration Tests

Copy link
Collaborator

@torcolvin torcolvin left a comment

Choose a reason for hiding this comment

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

Should we add redacted docID in error message, or do we know from the handler?

@adamcfraser adamcfraser merged commit e823439 into master Sep 12, 2023
13 checks passed
@adamcfraser adamcfraser deleted the better_error_reporting_for_attachment_validation branch September 12, 2023 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