Bug 342701

Summary: openSUSE updater can no longer ckeck for updates
Product: [openSUSE] openSUSE 10.3 Reporter: Matthias Fruehauf <mfrueh>
Component: YaST2Assignee: Jan Kupec <jkupec>
Status: RESOLVED FIXED QA Contact: Jiri Srain <jsrain>
Severity: Normal    
Priority: P5 - None CC: tgoettlicher
Version: Final   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: zypper log
output of zypper -t xu

Description Matthias Fruehauf 2007-11-19 13:22:49 UTC
Created attachment 183901 [details]
zypper log

On a 10.3 system with lots of repos and all updates done, openSUSE updater is no longer able to check for updates since some days.

The error message is:

Dienstprogramm gab zurück: invalid xml

I guess the Dienstprogramm is zypper?

I allready cleaned up everything according to
http://en.opensuse.org/SDB:Speed_up_Package_Manager_Stack
but nothing changes.

zypper logs attached
Comment 1 Matthias Fruehauf 2007-11-19 13:28:53 UTC
Created attachment 183902 [details]
output of zypper -t xu
Comment 2 Jan Kupec 2007-11-22 17:59:50 UTC
Bugzilla says the zypper.log has been removed, but the xml output look all right on the first look, so it is probably problem of the updater. Which updater do you use? KDE or Gnome?
Comment 3 Thomas Göttlicher 2007-11-23 08:30:14 UTC
I think the xml is invalid because of the ampersand in the repo name.

name="Reading repository 'Wesnoth & FreeCiv' cache"/>
                                 ^^^     
Comment 4 Matthias Fruehauf 2007-11-23 09:19:23 UTC
Bingo! Deactivating this repo solved the issue. Who is responsible for the naming of the repo? I will assign the bug to Adrian, so that he can make sure that there is a naming rule for the repos.
Comment 5 Thomas Göttlicher 2007-11-23 09:27:34 UTC
Renaming repos is only a workaround. Special characters should be quoted in the xml output.
Comment 6 Jan Kupec 2007-11-23 09:52:51 UTC
Exactly, i will keep this bug and fix it during implementation of complete xml in/out for zypper. Thomas, thanx for figuring it out.
Comment 7 Jan Kupec 2007-11-23 09:55:03 UTC
Hm, on the second thought the '&' is actually quoted there in comment #3, so that should not be a problem ...
Comment 8 Thomas Göttlicher 2007-11-23 10:08:41 UTC
The xml spec only allows '&' escaped as '&amp;'.

> The ampersand character (&) [...] MUST NOT appear in their literal
> form [...] they MUST be escaped using either numeric character 
> references or the strings "&amp;" [...]
See: http://www.w3.org/TR/xml/#syntax
Comment 9 Jan Kupec 2007-11-23 10:15:34 UTC
Thanx.
Comment 10 Jan Kupec 2008-02-29 15:50:44 UTC
fixed in svn, to be in zypper 0.10.2
Comment 11 Jan Kupec 2008-02-29 16:50:11 UTC
submitted