Ticket #1004 (closed defect: fixed)

Opened 12 years ago

Last modified 12 years ago

bcfg2-repo-validate doesn't handle including files from subdirs into clients.xml

Reported by: Owned by: desai
Priority: minor Milestone: Bcfg2 1.2.0 Release
Component: bcfg2-server Version: 1.0
Keywords: Cc:


In clients.xml, files from subdirectories can be included using XInclude. However, neither the schema nor bcfg2-repo-validate are set up to handle that:

$ cat Metadata/clients.xml
<Clients version='3.0' xmlns:xi=''>
  <xi:include href='subdir/foo.xml'/>

$ cat Metadata/subdir/foo.xml
  <Client name='' profile='server' pingable='Y'/>
  <Client name='' profile='server' pingable='Y'/>

$ bcfg2-repo-validate
/server/bcfg2/server/repository/Metadata/clients.xml ***FAILS*** to verify              <----
subdir/foo.xml:1: element Clients: Schemas validity error : Element 'Clients', attribute '{}base': The attribute '{}base' is not allowed.
subdir/foo.xml:3: element Client: Schemas validity error : Element 'Client': This element is not expected.
/server/bcfg2/server/repository/Metadata/clients.xml fails to validate


Change History

comment:1 Changed 12 years ago by

The new bcfg2-lint(8) tool handles XIncludes just fine, so this ticket can be closed.

comment:2 Changed 12 years ago by solj

  • Status changed from new to closed
  • Resolution set to fixed

WARNING! You need to establish a session before you can create or edit tickets. Otherwise the ticket will get treated as spam.


Add a comment

Modify Ticket

Change Properties
<Author field>
as closed
The resolution will be deleted. Next status will be 'reopened'

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.