-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug fix (issue 94): the previous version of AttachmentProxy assumed t…
…hat the digest provided in the CBL attachment metadata could always be used to construct a BlobKey. In the issue's test case, the digest was an MD5 instead of a SHA1, so the BlobKey constructor rejected it. Fixed the problem by checking to see if the digest is a SHA1 first; if not, it uses the MessageDigest class to construct a SHA1 from the attachment contents
- Loading branch information
Showing
1 changed file
with
50 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters