Bug 300028 - autoyast validation schema (profile.rng in yast2-schema RPM) is completely broken
Summary: autoyast validation schema (profile.rng in yast2-schema RPM) is completely br...
Status: RESOLVED DUPLICATE of bug 211014
Alias: None
Product: SUSE Linux 10.1
Classification: openSUSE
Component: AutoYaST (show other bugs)
Version: Final
Hardware: x86-64 SuSE Linux 10.1
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Uwe Gansert
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-13 23:37 UTC by Patrick LoPresti
Modified: 2007-09-14 11:20 UTC (History)
0 users

See Also:
Found By: Customer
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick LoPresti 2007-08-13 23:37:50 UTC
Following a fresh install of SUSE Linux Enterprise Server 10 SP1, the ~root/autoyast.xml file fails to validate:

localhost:~ # xmllint --noout --relaxng /usr/share/YaST2/schema/autoyast/rng/profile.rng autoinst.xml
autoinst.xml:4: element add-on: Relax-NG validity error : Element profile has extra content: add-on
autoinst.xml fails to validate

A similar error appears in the autoyast GUI if you open the autoyast.xml file and then attempt to save it.  Or indeed if you save any file whatsoever from the Autoinstallation GUI.

The problem is that the profile.rng file in the yast2-schema-2.13.5-0.13 package is obsolete.  It expects various tags -- like "<add-on>" and "<bootloader>" -- to appear inside an "<install> ... </install>" section.

But according to the AutoYast documentation (http://www.suse.com/~ug/autoyast_doc/Profile.Format.html), the <install> section is deprecated as of SUSE Linux 10.0.

Therefore this is a bug in the yast2-schema package in SLES 10 SP1.  And it renders the validator useless, since even valid files created during installation (or from the Autoinstallation GUI, or manually with a text editor) always fail validation.

Please update the yast2-schema package to correct this bug.  Thank you!
Comment 1 Uwe Gansert 2007-09-14 11:20:08 UTC

*** This bug has been marked as a duplicate of bug 211014 ***