Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 542463

Summary: Code Recommenders cannot download its model repository index - breaks after "206 Partial Content"
Product: Community Reporter: Vaclav Kadlcik <vkadlcik>
Component: ServersAssignee: Eclipse Webmaster <webmaster>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: akurtakov, denis.roy, mat.booth, sewe
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
screenshot none

Description Vaclav Kadlcik CLA 2018-12-06 07:26:30 EST
Created attachment 276839 [details]
screenshot

Code Recommenders cannot download its model repository index,
see the attached screenshot.

It definitely isn't a network problem, probably a server-side
one. I followed Eclipse with Wireshark. It tries to download:

1. http://download.eclipse.org/recommenders/models/photon/org/eclipse/recommenders/index/0.0.0-SNAPSHOT/maven-metadata.xml
2. http://download.eclipse.org/recommenders/models/photon/org/eclipse/recommenders/index/0.0.0-SNAPSHOT/maven-metadata.xml.sha1
3. http://download.eclipse.org/recommenders/models/photon/org/eclipse/recommenders/index/0.0.0-SNAPSHOT/index-0.0.0-20171110.192552-1.zip

The first two items pass OK. The last one starts with Eclipse's
request, then the server responses with "206 Partial Content"
and Eclipse immediately closes the connection. Truth be told,
Eclipse's request doesn't ask for any specific range; I'm not
sure if the server's response is correct in such a case.

It looks to me like there was some change on the server side
and the client code in Recommenders cannot cope with it. FWIW,
my wget cannot download the file either, obviously fooled by
the same "206 Partial Content" response.
Comment 1 Andreas Sewe CLA 2018-12-06 08:43:55 EST
Wget also fails here.

Also, while Firefox downloads the file, the download results in a corrupt ZIP file that fails to extract.

Hence, this looks like a server problem, not one in Code Recommenders. Reassigning.
Comment 2 Denis Roy CLA 2018-12-06 09:30:19 EST
This is a bad server response. Looking into it.
Comment 3 Denis Roy CLA 2018-12-06 11:42:34 EST
Can you try now?
Comment 4 Andreas Sewe CLA 2018-12-06 12:14:52 EST
(In reply to Denis Roy from comment #3)
> Can you try now?

Looks good now. Thanks for the quick fix.