Ticket #784 (closed defect: fixed)
Defining an object more than once does not result in an error or warning
Reported by: | https://www.google.com/accounts/o8/id?id=AItOawlmQQXfSG8MiJbq8L5pwwSZpPJqtMfKtG8 | Owned by: | desai |
---|---|---|---|
Priority: | minor | Milestone: | Bcfg2 1.2.0 Release |
Component: | bcfg2-server | Version: | 1.0 |
Keywords: | Cc: |
Description
I'm running wgen-bcfg2-1.0pre5-1 on CentOS. By mistake, I defined a profile more than once: <Group name="myprofile1" profile="true" public="false" category="hostclass" > <Bundle name="a" /> <Bundle name="b" /> <Group name="foo" /> </Group>
<Group name="myprofile1" profile="true" public="false" category="hostclass" > <Bundle name="a" /> <Group name="bar" /> <Group>
The server happily took the second definition as the correct one -- discarding, in this case, bundle B.
As curiosity, I also assigned a bunch of different (unique) profiles to the same client in clients.xml. The last profile assignment seemed to be the one prevailing.
I would expect either bcfg2-server or bcfg2-repo-validate to fail loudly, or at least give me a warning.
Attachments
Change History
comment:3 Changed 13 years ago by solj
- Milestone changed from Bcfg2 1.1.0 Release to Bcfg2 1.1.1 Release (Bugfix)
comment:4 Changed 12 years ago by solj
- Milestone changed from Bcfg2 1.1.1 Release (Bugfix) to Bcfg2 1.1.2 Release (Bugfix)
comment:5 Changed 12 years ago by desai
- Status changed from new to closed
- Resolution set to fixed
Resolved in [fbe3ffd8ecf28db72109190efefa830ed3561c22]