Bug 301022

Summary: zypper giving incomplete error message
Product: [openSUSE] openSUSE 10.3 Reporter: Klaus Kämpf <kkaempf>
Component: libzyppAssignee: Jan Kupec <jkupec>
Status: RESOLVED FIXED QA Contact: Stanislav Visnovsky <visnov>
Severity: Critical    
Priority: P5 - None CC: dmacvicar, ma, nospamm
Version: Beta 2   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Klaus Kämpf 2007-08-16 14:12:02 UTC
zypper 0.8.11 (fresh from svn) reports

  # time ./zypper refresh factory
  Refreshing 'factory'
  Refreshing 'factory'
  Repository 'factory' is invalid.
  Valid metadata not found at specified URL(s)
  Please, check if the URLs defined for this repository are pointing to a valid     
  repository.
  Skipping repository 'factory' because of the above error.
  Could not refresh the repositories because of errors.

if the content file lists an unknown file.

The error message should at least report which file is missing.
Comment 1 Klaus Kämpf 2007-08-16 14:16:41 UTC
zypper.log knows whats wrong:
Fetcher.cc(start):176: Can't provide ./gpg-pubkey-0dfb3188-41ed929b.asc : Media Exception
Comment 2 Jan Kupec 2007-08-16 15:26:39 UTC
This is buried in RepoManager::refreshMetadata(), Duncan, can you take care of this?
Comment 3 Jan Kupec 2007-08-16 15:30:27 UTC
Maybe all zypp::Exceptions should be allowed to fly away from there, but i'm not sure. Or even better, just prepare the RepoException and right before throwing it log the last caught exception in the new RepoException(). zypper will show to root cause.
Comment 4 Klaus Kämpf 2007-08-29 14:07:22 UTC
Raising prio, since a usability bug
Comment 5 Jan Kupec 2007-08-29 14:43:07 UTC
*** Bug 303865 has been marked as a duplicate of this bug. ***
Comment 6 Jan Kupec 2007-08-30 08:10:34 UTC
*** Bug 299775 has been marked as a duplicate of this bug. ***
Comment 7 Jan Kupec 2007-08-30 15:34:23 UTC
fixed in svn:
remembering the exception of the first baseurl in the RepoException
Comment 8 Jan Kupec 2007-08-30 16:43:05 UTC
submitted in libzypp 3.20.1
Comment 9 Jan Kupec 2007-09-03 14:10:31 UTC
*** Bug 300527 has been marked as a duplicate of this bug. ***