Bug 58595 - Error downloading component: MD5 hashes don't match
Summary: Error downloading component: MD5 hashes don't match
Status: CONFIRMED
Alias: None
Product: Components
Classification: Xamarin
Component: Visual Studio Integration ()
Version: Production (addons.xamarin.com)
Hardware: All All
: --- major
Target Milestone: ---
Assignee: Tim Miller
URL:
Depends on:
Blocks:
 
Reported: 2017-08-04 18:07 UTC by David Greene
Modified: 2017-08-07 21:39 UTC (History)
5 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
Screenshot of error (82.08 KB, image/png)
2017-08-04 18:07 UTC, David Greene
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report for Bug 58595 on Developer Community or GitHub if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: Developer Community HTML or GitHub Markdown
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:
Status:
CONFIRMED

Description David Greene 2017-08-04 18:07:01 UTC
Created attachment 24039 [details]
Screenshot of error

When adding components into a project the download fails with the following:
“Error downloading component: MD5 hashes don't match”

Screenshot attached

Components Reported to be effected:
XM.CropImage
XM.Media
Instabug for Android
Instabug for iOS

IDEs Tested:
VS2015 U3
VS2017 15.2 & 15.3
VS4Mac 7.0.1

Steps to reproduce:
-Create Blank Xamarin Android Project in Visual Studio 2015 (see version info following description. 
-Right-click Components -> Get More Components
-Search and find effected component
-Add To App
-In Solution Explorer, under components, Right Click XM.CropImage (Error)-> Edit Components ...
-Underneath the logo showing XM.CropImage, I see a Red error message stating:
Error downloading component: MD5 hashes don't match
-There's a link to retry. The error message shows again,.

Additional Testing:
-An engineer opened the .info that came with the Component (Tested XM.CropImage) after using solution explorer to add the component. 
-The .info has a Hash property in the json and shows the value: "Hash":"e9757ae3801b251ef6396b4a9ee7e4ac"
-Downloaded XM.CropImage from https://components.xamarin.com/download/xm.cropimage
-This is a zip file with md5 hash of e9757ae3801b251ef6396b4a9ee7e4ac
Comment 1 Bill Holmes 2017-08-04 21:15:57 UTC
What I have found is that the IDE is calling the following to download the component.  

https://components.xamarin.com/api/download/xm.cropimage/1.0.0

That is returning a zero byte file.  Will need to pick this back up next week.
Comment 2 Bill Holmes 2017-08-07 18:48:27 UTC
We have deployed a workaround for this defect.  You should not see the error.

I have been asked to leave the bug open for now while the web team investigates a better fix.
Comment 3 David Greene 2017-08-07 21:39:42 UTC
I've verified the components listed above, and others noted are now downloading as expected.
Thank you!