[Bug 602434] New: Broken handling of metalink files for files without mirrors
http://bugzilla.novell.com/show_bug.cgi?id=602434 http://bugzilla.novell.com/show_bug.cgi?id=602434#c0 Summary: Broken handling of metalink files for files without mirrors Classification: openSUSE Product: openSUSE.org Version: unspecified Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Download Infrastructure AssignedTo: pascal.bleser@opensuse.org ReportedBy: mrueckert@novell.com QAContact: adrian@novell.com CC: lrupp@novell.com, mls@novell.com, pascal.bleser@opensuse.org, andrea@opensuse.org, poeml@cmdline.net Found By: --- Blocker: --- [[[ Retrieving repository 'openSUSE-11.2-Update' metadata [error] Repository 'openSUSE-11.2-Update' is invalid. Can't provide /repodata/1ef1cd51fee27c4731999eb4710431f99d1814b2-susedata.xml.gz : Can't hardlink/copy /var/adm/mount/AP_0x00000001/repodata/1ef1cd51fee27c4731999eb4710431f99d1814b2-susedata.xml.gz to /var/cache/zypp/raw/repo-updateG2UwkO Please check if the URIs defined for this repository are pointing to a valid repository. Skipping repository 'openSUSE-11.2-Update' because of the above error. Some of the repositories have not been refreshed because of an error. ]]] After some investigations 1. If the mirrordb has no mirrors for the file the <resources> section is empty. I wonder if mod_mirrorbrain should add its own instance there. (just in the case of mirror_cnt == 0 maybe) 2. aria2c handles that situation in an unexpected way: a) it downloads metalink file b) sees empty resources section c) exits with returncode 0 d) yast thinks the file is downloaded successfully. e) fails on hardlinking/copying I think the natural expectation here would be: If the file isnt downloaded properly dont return with 0. I think Pascal wins this bug for the aria fix. :) -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=602434
http://bugzilla.novell.com/show_bug.cgi?id=602434#c1
--- Comment #1 from Peter Poeml
After some investigations 1. If the mirrordb has no mirrors for the file the <resources> section is empty.
Not in your case. That's the case *only* if a client tries to access a metalink by appending .metalink to an URL (which aria2c does not), *and* there are no fallback mirrors configured (which you could do, if you'd care). aria2c & MirrorBrain negotiats the type of the response transparently, which means that (if there are no mirrors) aria2c simply receives the actual content instead of a metalink. (That's how it's supposed to work anyway; if you see something different, please let me know!)
2. aria2c handles that situation in an unexpected way:
If you are really sure about that (are you?): A metalink without resources might be a good reason to reject it. Or just to ignore it. On the other hand, MirrorBrain could return a 404, maybe. Anyway, it seems that you need to debug a different problem. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=602434
http://bugzilla.novell.com/show_bug.cgi?id=602434#c2
--- Comment #2 from Michael Schröder
http://bugzilla.novell.com/show_bug.cgi?id=602434
http://bugzilla.novell.com/show_bug.cgi?id=602434#c3
--- Comment #3 from Michael Schröder
http://bugzilla.novell.com/show_bug.cgi?id=602434
http://bugzilla.novell.com/show_bug.cgi?id=602434#c4
Michael Schröder
http://bugzilla.novell.com/show_bug.cgi?id=602434
http://bugzilla.novell.com/show_bug.cgi?id=602434#c5
Michael Schröder
http://bugzilla.novell.com/show_bug.cgi?id=602434
http://bugzilla.novell.com/show_bug.cgi?id=602434#c6
--- Comment #6 from Peter Poeml
http://bugzilla.novell.com/show_bug.cgi?id=602434
http://bugzilla.novell.com/show_bug.cgi?id=602434#c
Peter Poeml
http://bugzilla.novell.com/show_bug.cgi?id=602434
http://bugzilla.novell.com/show_bug.cgi?id=602434#c7
Michael Schröder
http://bugzilla.novell.com/show_bug.cgi?id=602434
http://bugzilla.novell.com/show_bug.cgi?id=602434#c8
Peter Poeml
http://bugzilla.novell.com/show_bug.cgi?id=602434
http://bugzilla.novell.com/show_bug.cgi?id=602434#c9
Michael Schröder
http://bugzilla.novell.com/show_bug.cgi?id=602434
http://bugzilla.novell.com/show_bug.cgi?id=602434#c10
--- Comment #10 from Marcus Rückert
http://bugzilla.novell.com/show_bug.cgi?id=602434
http://bugzilla.novell.com/show_bug.cgi?id=602434#c11
--- Comment #11 from Michael Schröder
https://bugzilla.novell.com/show_bug.cgi?id=602434
https://bugzilla.novell.com/show_bug.cgi?id=602434#c12
Peter Poeml
participants (1)
-
bugzilla_noreply@novell.com