Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #4149: Restore cat. with same name and different parents #414

Conversation

fanf
Copy link
Member

@fanf fanf commented Jan 13, 2014

No description provided.

logger.error("Ignoring Active Technique Categor with ID '%s' because its name is '%s' already referenced by category with ID '%s'".format(
cat.id.value, cat.name, id.value
} else categoryNamesByParent.get(cat.name) match { //name is mandatory
case Some(list) if list.contains(parent.id) =>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

isn't it a bit overzealous ?
If I have
|_ cat A
|__group1
|__catB
|___group1
group1 in cat A will fail because its parent are in those of catB
or am I not understanding something ?

@ncharles
Copy link
Member

looks good !

ncharles added a commit that referenced this pull request Jan 14, 2014
…ve_with_subcat_having_same_name

Fixes #4149: Restore cat. with same name and different parents
@ncharles ncharles merged commit 2471605 into Normation:branches/rudder/2.6 Jan 14, 2014
@fanf fanf deleted the bug_4149/error_when_restoring_archive_with_subcat_having_same_name branch March 15, 2024 10:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants