|
Bugzilla – Full Text Bug Listing |
| Summary: | rug with local yum repository: download failed | ||
|---|---|---|---|
| Product: | [openSUSE] SUSE Linux 10.1 | Reporter: | Andreas Gruenbacher <agruen> |
| Component: | Zenworks | Assignee: | Klaus Kämpf <kkaempf> |
| Status: | VERIFIED FIXED | QA Contact: | Eric Waldow <ewaldow> |
| Severity: | Blocker | ||
| Priority: | P5 - None | CC: | mt, suse-beta |
| Version: | Beta 7 | ||
| Target Milestone: | --- | ||
| Hardware: | Other | ||
| OS: | Other | ||
| Whiteboard: | |||
| Found By: | Other | Services Priority: | |
| Business Priority: | Blocker: | --- | |
| Marketing QA Status: | --- | IT Deployment: | --- |
| Attachments: | Patch needed to allow a hostname in "dir" and "file" url's | ||
|
Description
Andreas Gruenbacher
2006-03-11 19:10:47 UTC
It might be already fixed, but I'm not sure. There was another bug where zypp helper set the 'local', 'package_filename' and 'package_url' incorrectly. It was a bug about not been able to install local packages, which is related, but not necessary the same code path. So, in this case, parse-metadata should set local=1, package_url=null, package_filename=/path/to/file --> Klaus This was fixed in rev 2508 (2006-03-16) Well, download is working now for an http:// service, but I can't get the service-add to work with a YUM service and file:// URI. It complains that it's an invalid URI scheme. I can't see a reason to explicitly exclude file:// URI's, so that may be worth revisiting at some point. Downloads work, so I'm verifying the bug. IIRC, file: does not allow a hostname, so use file:/foo/bar/baz (single slash after colon). Marius, maybe you can add some comment here ?! The "file" scheme in the Url allows hostname, but the MediaDIR still
rejects it. We can disable/remove this check (ctor in MediaDIR.cc):
MIL << "MediaDIR::MediaDIR(" << url_r << ")" << endl;
+#if 0
if( !url_r.getHost().empty())
{
ZYPP_THROW(MediaBadUrlException(url_r,
"Hostname not allowed in the Url"
));
}
+#endif
}
Should I do it?
Ahm... There is also a differece between "dir" and "file" zypp::Url scheme - "dir" does not allow a hostname. This would need a change as well. Created attachment 90228 [details]
Patch needed to allow a hostname in "dir" and "file" url's
|