linaro-fetch-image unusable since latest linaro 12.08 release

Bug #1041774 reported by Fathi Boudra
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Linaro Fetch Image
Invalid
Critical
Georgy Redkozubov
linaro-license-protection
Fix Released
Critical
Georgy Redkozubov

Bug Description

l-f-i allows to download release up to 12.03 release.
In addition, latest changes to snapshots.linaro.org (django app) broke fetch image/crawler.
You can't get the latest images/hwpack anymore.

Gesha suggested to fix all the code broken by the new snapshots.linaro.org or just fix django template.

Note: it breaks also the pre-built images as we re-use fetch image/crawler code in the jenkins job.

Fathi Boudra (fboudra)
Changed in linaro-fetch-image:
status: New → Triaged
importance: Undecided → Critical
Fathi Boudra (fboudra)
description: updated
Changed in linaro-fetch-image:
assignee: nobody → Georgy Redkozubov (gesha)
Changed in linaro-fetch-image:
status: Triaged → In Progress
Revision history for this message
Данило Шеган (danilo) wrote :

Gesha has said he'll fix the templates in lp:linaro-license-protection.

We should also create a separate bug to provide a stable API for fetching the directory contents in lp:linaro-license-protection. Actually, that probably makes more sense as a blueprint.

For now, let's resolve this as cleanly as possible (and that means keeping even older fetch-image variants working using the similar HTML structure in the template), and then think about the API-approach.

summary: - linaro-fetch-image unusable since latest linaro 12.03 release
+ linaro-fetch-image unusable since latest linaro 12.08 release
Changed in linaro-license-protection:
importance: Undecided → Critical
status: New → In Progress
assignee: nobody → Georgy Redkozubov (gesha)
milestone: none → 2012.09
Changed in linaro-fetch-image:
milestone: none → 2012.09
Revision history for this message
Georgy Redkozubov (gesha) wrote :

Template was fixed.

Revision history for this message
Georgy Redkozubov (gesha) wrote :

Patterns were fixed in daily-prebuilt-images/crawler.py and linaro-ci/find_latest.py.
The only issue left is to auto accept licenses by crawler.py, which means that we need to use LicenseProtectedFileFetcher there as well.

Revision history for this message
James Tunnicliffe (dooferlad) wrote : Re: [Bug 1041774] Re: linaro-fetch-image unusable since latest linaro 12.03 release

Linaro fetch image doesn't care about what web pages look like - it
has a crawler that runs on the server to index all the files. As long
as the index hasn't moved, it should still work as long as the
download part follows redirects and can cope with the x-sendfile
stuff. That hasn't been tested.

As for an API the new implementation provides nearly everything you
need to interact with the server without scraping pages. To get a
download you now need a cookie named license_accepted_<md5sum of
license>. Currently our download script scrapes this license out of
the license page (which is quite easy), but it would be better to have
a ?format=txt option to add to license pages to avoid having to do
this and it should be very simple to add.

Changed in linaro-license-protection:
status: In Progress → Fix Released
Changed in linaro-fetch-image:
status: In Progress → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.