Modify

Ticket #784 (closed defect: fixed)

Opened 10 years ago

Last modified 8 years ago

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:1 Changed 10 years ago by solj

  • Milestone set to Bcfg2 1.1.0 Release

comment:3 Changed 9 years ago by solj

  • Milestone changed from Bcfg2 1.1.0 Release to Bcfg2 1.1.1 Release (Bugfix)

comment:4 Changed 9 years ago by solj

  • Milestone changed from Bcfg2 1.1.1 Release (Bugfix) to Bcfg2 1.1.2 Release (Bugfix)

comment:5 Changed 9 years ago by desai

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

comment:6 Changed 8 years ago by solj

  • Milestone changed from Bcfg2 1.1.2 Release (Bugfix) to Bcfg2 1.2.0 Release

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

View

Add a comment

Modify Ticket

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


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

 
Note: See TracTickets for help on using tickets.