Page 1 of 1

Digest mismatch (VERR_NOT_EQUAL) with correct file (#17357)

PostPosted: 6. Sep 2016, 21:40
by SergeyBelov

[ModEdit; related ticket: #17357: Import OVF fails with Digest mismatch (VERR_NOT_EQUAL): Attribute 'SHA1']

I get an error when importing OVA (Kaspersky Secure Mail Gateway):
Code: Select all   Expand viewCollapse view
Digest mismatch (VERR_NOT_EQUAL): Attribute 'SHA1' on 'ksmg-1.0.0-557.x86_64.ovf' does not match ('FFAF6942EEBEBF68C991F53363B071038E874656' vs. 'ffaf6942eebebf68c991f53363b071038e874656').

Result Code:
VBOX_E_FILE_ERROR (0x80BB0004)
Component:
ApplianceWrap
Interface:
IAppliance {8398f026-4add-4474-5bc3-2f9f2140b23e}


Hashes equal except capital letters.

Is this a bug?

I try VirtualBox 5.1.4 at Windows 7 SP1 x86.

Re: Digest mismatch (VERR_NOT_EQUAL) with correct file

PostPosted: 7. Sep 2016, 18:00
by scottgus1
I haven't imported an appliance in a long while. Do you have to provide one of those hashes? If so, just go through the hash value you provide and replace every letter with the opposite case and try again. If you don't provide the hash, maybe it's in the files describing the appliance and you could change the hash in some sort of configuration file.

The hash values appear to be in the hexadecimal range, 0-9, A-F. Case isn't supposed to matter, but the two hashes in your error message do in fact not technically match because, for example, F is not f in computer codes. Higher-level programming languages have commands to automatically switch case on the letters to handle such case issues. Maybe someone forgot to throw in a "Ucase()"?

Re: Digest mismatch (VERR_NOT_EQUAL) with correct file

PostPosted: 8. Sep 2016, 18:08
by SergeyBelov
Thanks for your reply.

I can't change OVA because it's signeg. All hashes in OVA (in ksmg-1.0.0-557.x86_64.mf) are correct but written capital.
Code: Select all   Expand viewCollapse view
SHA1(ksmg-1.0.0-557.x86_64.ovf)= FFAF6942EEBEBF68C991F53363B071038E874656
SHA1(ksmg-1.0.0-557.x86_64-disk1.vmdk)= B34834ADFFEEE4FA43479026ABDC6AD0E6EC31C6
SHA1(ksmg-1.0.0-557.x86_64-disk2.vmdk)= E16BA1F6DCA824B84B6A01E94A05F3DB76DCEFC7
SHA1(ksmg-1.0.0-557.x86_64-disk3.vmdk)= 5251A1E9A679371C0BFBF70178F5321BB91E613E
SHA1(ksmg-1.0.0-557.x86_64-disk4.vmdk)= C915EF32279F42747765952FDB21BFB26F7F86A5
SHA1(ksmg-1.0.0-557.x86_64-disk5.vmdk)= 7EC5C11137CC02F4BCCCAAD35BD7E7226B34E23D


scottgus1 wrote:Maybe someone forgot to throw in a "Ucase()"?

I think so.

Re: Digest mismatch (VERR_NOT_EQUAL) with correct file

PostPosted: 8. Sep 2016, 18:10
by SergeyBelov
Should I write bug report?

Re: Digest mismatch (VERR_NOT_EQUAL) with correct file

PostPosted: 8. Sep 2016, 18:55
by scottgus1
Sounds like a good idea. See Bugtracker

Meanwhile, you might look into how to extract all the info within the appliance - the virtual disk file and settings information - and try to set up a Virtualbox guest maually.

Re: Digest mismatch (VERR_NOT_EQUAL) with correct file

PostPosted: 7. Dec 2017, 21:52
by MarcT
I ran into the same issue and have just opened ticket 17357

Kind Regards,

Marc

Re: Digest mismatch (VERR_NOT_EQUAL) with correct file

PostPosted: 8. Dec 2017, 00:22
by socratis
Thank you for including the ticket number. I added the ticket information in the first post.