Bug 355108

Summary: zypper reports that given URL is invalid if you try to install a package
Product: [openSUSE] openSUSE 11.0 Reporter: Andreas Schneider <anschneider>
Component: libzyppAssignee: Jan Kupec <jkupec>
Status: RESOLVED FIXED QA Contact: Duncan Mac-Vicar <dmacvicar>
Severity: Major    
Priority: P5 - None CC: cgoncalves, coolo, dimstar, forgotten_nqeDWc8OMK
Version: Alpha 1   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: zypper log file

Description Andreas Schneider 2008-01-21 13:30:03 UTC
zypper-0.9.5-4

maximegalon:~ # z in git
Given URL is invalid.
Url scheme is a required component
Problem downloading the specified RPM file.
Malformed URL:
Please check whether the file is accessible.
Problem with the RPM file specified as git, skipping.
* Reading repository 'Software configuration management (openSUSE_Factory)' cache
* Reading repository 'Tools for building software (openSUSE_Factory)' cache
* Reading repository 'openSUSE' cache
* Reading repository 'GlaDiaC's Home Project (openSUSE_Factory)' cache
* Reading installed packages [100%]

Nothing to do.
maximegalon:~ # z -v lr
Verbosity: 1
# | Enabled | Refresh | Type   | Alias                | Name                                                 | URI                                                      
--+---------+---------+--------+----------------------+------------------------------------------------------+-----------------------------------------------------------------------------------
1 | Yes     | No      | rpm-md | devel:tools:scm      | Software configuration management (openSUSE_Factory) | http://download.opensuse.org/repositories/devel:/tools:/scm/openSUSE_Factory/
2 | Yes     | No      | rpm-md | devel:tools:building | Tools for building software (openSUSE_Factory)       | http://download.opensuse.org/repositories/devel:/tools:/building/openSUSE_Factory/
3 | Yes     | No      | yast2  | openSUSE             | openSUSE                                             | http://dist.suse.de/install/SLP/openSUSE-11.0-LATEST-DVD/x86_64/DVD1
4 | Yes     | No      | rpm-md | home:gladiac         | GlaDiaC's Home Project (openSUSE_Factory)            | http://download.opensuse.org/repositories/home:/gladiac/openSUSE_Factory/

--------------

Installing another package simply works.

z in quilt
* Reading repository 'Software configuration management (openSUSE_Factory)' cache
* Reading repository 'Tools for building software (openSUSE_Factory)' cache
* Reading repository 'openSUSE' cache
* Reading repository 'GlaDiaC's Home Project (openSUSE_Factory)' cache
* Reading installed packages [100%]


The following NEW packages are going to be installed:
  diffstat quilt

Overall download size: 288.3 K. After the operation, additional 556.2 K will be used.
Continue? [yes/no]: yes
Comment 1 Duncan Mac-Vicar 2008-01-23 10:57:39 UTC
Andreas, does it still happen? can you attach zypper.log, the url is not the one from the repo, but the construction of the repo url plus the rpm file.

I want to see the throw in the log.
Comment 2 Andreas Schneider 2008-01-23 15:12:08 UTC
Created attachment 191508 [details]
zypper log file

To get the package see the urls for the repos of the initial comment.
Comment 3 Duncan Mac-Vicar 2008-01-24 14:28:34 UTC
2008-01-23 16:06:23 <1> maximegalon(26913) [zypper] zypper.cc(doCommand):1283 Going to process command 6
2008-01-23 16:06:23 <0> maximegalon(26913) [zypper] zypper.cc(doCommand):1649 git looks like rpm file
2008-01-23 16:06:23 <0> maximegalon(26913) [zypper] zypper-utils.cc(make_url):138 'git' does not look like a URL, trying to treat it like a local path
2008-01-23 16:06:23 <0> maximegalon(26913) [zypper] zypper-utils.cc(make_url):150 current working directory: /root
2008-01-23 16:06:23 <0> maximegalon(26913) [zypper] zypper-utils.cc(make_url):161 specified local path does not exist or is not accessible
2008-01-23 16:06:23 <5> maximegalon(26913) [zypp] Exception.cc(log):119 UrlBase.cc(setScheme):821 THROW:    UrlBase.cc(setScheme):821: Url scheme is a required component
2008-01-23 16:06:23 <5> maximegalon(26913) [zypp] Exception.cc(log):119 zypper-utils.cc(make_url):168 CAUGHT:   UrlBase.cc(setScheme):821: Url scheme is a required component
2008-01-23 16:06:23 <1> maximegalon(26913) [zypp] MediaAccess.cc(open):101 Url is not valid
2008-01-23 16:06:23 <5> maximegalon(26913) [zypp] Exception.cc(log):119 MediaAccess.cc(open):102 THROW:    MediaAccess.cc(open):102: Malformed URL: 


I think it is a bug in Jano's feature to install rpm files ;-)
Comment 4 Andreas Schneider 2008-01-25 16:02:45 UTC
The problem exists only for packages with 3 letters (git, osc, vim, ...). This bug is really annoying!
Comment 5 Jan Kupec 2008-01-25 18:30:45 UTC
already fixed in svn, will be in zypper 0.9.6
Comment 6 Jan Kupec 2008-01-29 09:12:40 UTC
*** Bug 355440 has been marked as a duplicate of this bug. ***
Comment 7 Jan Kupec 2008-01-31 17:38:14 UTC
*** Bug 357667 has been marked as a duplicate of this bug. ***
Comment 8 Jan Kupec 2008-02-01 12:40:23 UTC
*** Bug 357285 has been marked as a duplicate of this bug. ***
Comment 9 Jan Kupec 2008-02-04 09:24:21 UTC
submitted
Comment 10 Jan Kupec 2008-02-11 11:12:47 UTC
*** Bug 356525 has been marked as a duplicate of this bug. ***