Skip to content

verify_signature(): handle SerializationError - #1836

Merged
lukpueh merged 1 commit into
theupdateframework:developfrom
MVrachev:verify-sig-serialization-error
Feb 8, 2022
Merged

lukpueh merged 1 commit into
theupdateframework:developfrom
MVrachev:verify-sig-serialization-error

Conversation

@MVrachev

@MVrachev MVrachev commented Feb 8, 2022

Copy link
Copy Markdown
Collaborator

Fixes #1816

Description of the changes being introduced by the pull request:

We should handle the possible SerializationError inside
Key.verify_signature(), because the user of this API is not interested
in SerializationError when he is trying to verify his signature.

Note that the SerializationError can be thrown when calling
signed_serializer.serialize() on the metadata signed part.

Signed-off-by: Martin Vrachev [email protected]

Please verify and check that the pull request fulfills the following
requirements
:

  • The code follows the Code Style Guidelines
  • Tests have been added for the bug fix or new feature
  • Docs have been added for the bug fix or new feature

We should handle the possible SerializationError inside
Key.verify_signature(), because the user of this API is not interested
in SerializationError when he is trying to verify his signature.

Note that the SerializationError can be thrown when calling
signed_serializer.serialize() on the metadata signed part.

Signed-off-by: Martin Vrachev <[email protected]>
@coveralls

coveralls commented Feb 8, 2022 •

Copy link
Copy Markdown

Pull Request Test Coverage Report for Build 1811663756

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.2%) to 98.304%

Totals Coverage Status
Change from base Build 1811366919: 0.2%
Covered Lines: 1087
Relevant Lines: 1101

💛 - Coveralls

@jku jku left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This makes sense to me

@lukpueh
lukpueh merged commit d4dd652 into theupdateframework:develop Feb 8, 2022
@MVrachev
MVrachev deleted the verify-sig-serialization-error branch February 8, 2022 14:22
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.

Metadata API: verify_signature() should handle SerializationError

4 participants