[Bug 300993] New: improper exceptions/ error messages when trying to refresh as non-root
https://bugzilla.novell.com/show_bug.cgi?id=300993 Summary: improper exceptions/error messages when trying to refresh as non-root Product: openSUSE 10.3 Version: Beta 1 Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: libzypp AssignedTo: dmacvicar@novell.com ReportedBy: jkupec@novell.com QAContact: kkaempf@novell.com Found By: --- 1) Proper MediaException must be thrown (or logged) when user has no permission to write to raw cache dir: 2007-08-16 13:50:31 <5> kompost(6912) [zypp] Exception.cc(log):119 RepoManager.cc(refreshMetadata):609 CAUGHT: Fetcher.cc(start):176: Can't provide /repodata/repomd.xml.key : Can't create /repodata 2007-08-16 13:50:31 <3> kompost(6912) [zypp] RepoManager.cc(refreshMetadata):610 Trying another url... 2007-08-16 13:50:31 <3> kompost(6912) [zypp] RepoManager.cc(refreshMetadata):613 No more urls... 2007-08-16 13:50:31 <5> kompost(6912) [zypp] Exception.cc(log):119 RepoManager.cc(refreshMetadata):614 THROW: RepoManager.cc(refreshMetadata):614: Valid metadata not found at specified URL(s) 2007-08-16 13:50:31 <5> kompost(6912) [zypp] Exception.cc(log):119 zypper-sources.cc(refresh_raw_metadata):95 CAUGHT: RepoManager.cc(refreshMetadata):614: Valid metadata not found at specified URL(s) Here zypper does not know what happend. 2) The same goes for unsufficient permission to write to the DB for non-root. In this case we get: 2007-08-16 14:55:32 <1> kompost(15247) [zypp] RepoManager.cc(buildCache):670 packman building cache... 2007-08-16 14:55:32 <5> kompost(15247) [zypp] Exception.cc(log):119 sqlite3x_reader.cpp(read):71 THROW: sqlite3x_reader.cpp(read):71: SQL logic error or missing database 2007-08-16 14:55:32 <5> kompost(15247) [zypp] Exception.cc(log):119 CacheStore.cc(lookupOrAppendRepository):863 RETHROW: sqlite3x_reader.cpp(read):71: SQL logic error or missing database 2007-08-16 14:55:32 <1> kompost(15247) [zypp] CacheStore.cc(~Impl):154 name cache hits: 0 | cache size: 0 2007-08-16 14:55:32 <5> kompost(15247) [zypp] Exception.cc(log):119 zypper-sources.cc(build_cache):165 CAUGHT: CacheStore.cc(lookupOrAppendRepository):863: SQL logic error or missing database I.e. a CacheException with an improper message. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=300993#c1 Duncan Mac-Vicar <dmacvicar@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Duncan Mac-Vicar <dmacvicar@novell.com> 2007-10-03 10:03:34 MST --- duncan@piscolita:~> zypper refresh Root privileges are required for refreshing system repositories. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=300993#c2 --- Comment #2 from Ján Kupec <jkupec@novell.com> 2007-10-05 02:23:45 MST --- Actually it was the other commands and autorefresh which was the issue here. But it is fixed as well with the help of RepoManager::checkIfToRefreshMetadata(): non-root@kompost$ zypper search asdf Repository 'guru' is out-of-date. You can run 'zypper refresh' as root to update it. * Reading installed packages [100%] No resolvables found. It would just spit out errors in such case before. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com