Bug 302428

Summary: zypper doesn't output media errors in xml format
Product: [openSUSE] openSUSE 11.0 Reporter: Thomas Göttlicher <tgoettlicher>
Component: libzyppAssignee: Jan Kupec <jkupec>
Status: RESOLVED FIXED QA Contact: Klaus Kämpf <kkaempf>
Severity: Enhancement    
Priority: P5 - None CC: dmueller, forgotten_--EoyBps8f
Version: Alpha 2   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Thomas Göttlicher 2007-08-22 10:09:33 UTC
zypper doesn't output media errors in xml format in but on stderr as text when --terse option is selected.

It seems to me that error messages are handled on many different functions in code. Is there an central point for an elegant solution?
Comment 1 Joerg Kress 2007-08-22 10:17:56 UTC
Same with dependency errors. Maybe if it is too close to implement all kinds of errors independently, we should have at least a general error message from zypper for all errors.
Comment 2 Jan Kupec 2007-09-03 11:04:06 UTC
(In reply to comment #0 from Thomas Göttlicher)
> zypper doesn't output media errors in xml format in but on stderr as text when
> --terse option is selected.
> 
> It seems to me that error messages are handled on many different functions in
> code. Is there an central point for an elegant solution?

nope, ATM there is not. Although in the future it will be probably a way to go to print the errors with a set of report_problem() functions. Maybe also the normal output should be handled this way.

I will post a message about our plans to implement the xml output in zypper to the zypp-devel ML by tommorow and file a FATE request.
Comment 3 Thomas Göttlicher 2007-09-03 13:21:16 UTC
*** Bug 306392 has been marked as a duplicate of this bug. ***
Comment 5 Jan Kupec 2007-10-06 14:06:48 UTC
reopening for 11.0
Comment 6 Forgotten User --EoyBps8f 2007-10-15 12:56:12 UTC
Error-messages like:

Repository 'NVIDIA Repository' ist ungültig. Curl error for 'http://download.nvidia.com/opensuse/10.3/repodata/repomd.xml': Error code: Connection failed Error message: Couldn't resolve host 'download.nvidia.com' Bitte überprüfen Sie, ob die angegebenen URLs für dieses Repository zu einem validen Repository zeigen. Deaktiviere Repository 'NVIDIA Repository' Aufgrund des obigen Fehlers. Repository 'Packman Repository' ist ungültig. Curl error for 'http://ftp.skynet.be/pub/packman/suse/10.3/repodata/repomd.xml': Error code: Connection failed Error message: Couldn't resolve host 'ftp.skynet.be' Bitte überprüfen Sie, ob die angegebenen URLs für dieses Repository zu einem validen Repository zeigen. Deaktiviere Repository 'Packman Repository' Aufgrund des obigen Fehlers. 

Are a major usability bug and not an enhancement or feature. This should be fixed for 10.3 to make those messages of any use to the user.

http://files.myopera.com/freejerk/files/bug-feature.jpg
Comment 7 Jan Kupec 2007-10-15 13:36:46 UTC
Yes, it is a bug in the updater, but its a feature request for zypper. Please, see bug #306392. I'll reopen it, as it is not a duplicate of this one.
Comment 8 Jan Kupec 2008-03-07 12:31:44 UTC
zypper -x now does write all errors as <message type="error">error message</message>, fixed in 0.10.2