Bug 367777

Summary: patterns tag <name> must not contain spaces
Product: [openSUSE] openSUSE 10.3 Reporter: Marcus Meissner <meissner>
Component: YaST2Assignee: Duncan Mac-Vicar <dmacvicar>
Status: RESOLVED FIXED QA Contact: Adrian Schröter <adrian.schroeter>
Severity: Normal    
Priority: P3 - Medium CC: dmacvicar
Version: Final   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Marcus Meissner 2008-03-06 14:23:34 UTC
In a patterns.xml the <name>...</name> must not contain spaces
apparently, ortherwise libzypp on 10.3 throws XML parse errors.

Can you perhaps check that?

Example (BAD) from GNOME:Community:


<patterns count="3">
  <pattern xmlns="http://novell.com/package/metadata/suse/pattern" xmlns:rpm="http://linux.duke.edu/metadata/rpm">
    <name>The GIMP 2.4</name>
    <summary lang="en">Installs The GIMP</summary>
    <description lang="en">Installs the latest stable version of The GIMP.</description>
    <uservisible></uservisible>


Caused 
2008-03-06 14:58:44 <1> linux-sc76(7947) [zypp] RepoImpl.cc(read_capabilities):490 189 capabilities
2008-03-06 14:58:44 <5> linux-sc76(7947) [zypp] Exception.cc(log):119 Rel.cc(parse):47 THROW:    Rel.cc(parse):47: Rel parse: illegal strin
g value 'GIMP'
2008-03-06 14:58:44 <5> linux-sc76(7947) [zypp] Exception.cc(log):119 CapabilityImpl.cc(parse):307 CAUGHT:   Rel.cc(parse):47: Rel parse: i
llegal string value 'GIMP'
2008-03-06 14:58:44 <0> linux-sc76(7947) [zypp] CapabilityImpl.cc(parse):308 Trying named cap for: The GIMP 2.4
Comment 1 Adrian Schröter 2008-03-06 14:30:16 UTC
We do validate the patterns via the rng from zypp svn. 

Duncan, is it possible to add a definition for <name> content there as well ?
Comment 2 Duncan Mac-Vicar 2008-04-28 14:13:07 UTC
Can name have spaces?
Comment 3 Michael Schröder 2008-04-28 14:36:05 UTC
In solv files? Sure!
Comment 4 Adrian Schröter 2008-07-09 07:29:22 UTC
looks more like zypp issue.
Comment 5 Duncan Mac-Vicar 2008-07-17 13:37:59 UTC
No fix for 10.3, bug fixed in 11.0