Bug #2223
closedThe default group query is incomplete
Description
When creating a group, and leaving all default parameters,we cannot save the group, and we have the errors below.
It seems caused by the fact that the default equals value is "None", rather than Linux as shown. If I touch the select field to Linux then it works
11:00:34.925 [27340774@qtp-14460880-2] INFO c.n.r.repository.ldap.LDAPDiffMapper - Group DN entry 'nodeGroupId=1d430ead-0b30-4719-ace3-381c30e41c4f,groupCategoryId=41b9017d-79c8-4047-8d24-a05f22d5fc31,groupCategoryId=GroupRoot,ou=Rudder,cn=rudder-configuration' moved to 'nodeGroupId=1d430ead-0b30-4719-ace3-381c30e41c4f,groupCategoryId=53cd1160-4b9b-4bed-91bd-bf44af0d9ee6,groupCategoryId=41b9017d-79c8-4047-8d24-a05f22d5fc31,groupCategoryId=GroupRoot,ou=Rudder,cn=rudder-configuration'
11:00:40.328 [27340774@qtp-14460880-2] ERROR c.n.r.web.components.NodeGroupForm - An error occurred while updating the group:Error when updating the group NodeGroupId(1d430ead-0b30-4719-ace3-381c30e41c4f) <- Error when mapping change record to a diff object: LDIFModifyChangeRecord(dn='nodeGroupId=1d430ead-0b30-4719-ace3-381c30e41c4f,groupCategoryId=53cd1160-4b9b-4bed-91bd-bf44af0d9ee6,groupCategoryId=41b9017d-79c8-4047-8d24-a05f22d5fc31,groupCategoryId=GroupRoot,ou=Rudder,cn=rudder-configuration', mods={LDAPModification(type=replace, attr=jsonNodeGroupQuery, values={'{"select":"node","composition":"And","where":[{"objectType":"node","attribute":"OS","comparator":"eq","value":""}]}'})}) <- Missing required value for comparator 'eq' in line 'StringCriterionLine(node,OS,eq,None)'
11:01:06.025 [27340774@qtp-14460880-2] ERROR c.n.r.r.ldap.LDAPEntityMapper - Failure(Error when parsing query for node group persisted at DN 'nodeGroupId=1d430ead-0b30-4719-ace3-381c30e41c4f,groupCategoryId=53cd1160-4b9b-4bed-91bd-bf44af0d9ee6,groupCategoryId=41b9017d-79c8-4047-8d24-a05f22d5fc31,groupCategoryId=GroupRoot,ou=Rudder,cn=rudder-configuration' (name: 'wxcvxwvxv'), that seems to be an inconsistency. You should modify that group,Empty,Full(Failure(Missing required value for comparator 'eq' in line 'StringCriterionLine(node,OS,eq,None)',Empty,Empty)))
11:01:07.327 [20762714@qtp-14460880-5] ERROR c.n.r.r.ldap.LDAPEntityMapper - Failure(Error when parsing query for node group persisted at DN 'nodeGroupId=1d430ead-0b30-4719-ace3-381c30e41c4f,groupCategoryId=53cd1160-4b9b-4bed-91bd-bf44af0d9ee6,groupCategoryId=41b9017d-79c8-4047-8d24-a05f22d5fc31,groupCategoryId=GroupRoot,ou=Rudder,cn=rudder-configuration' (name: 'wxcvxwvxv'), that seems to be an inconsistency. You should modify that group,Empty,Full(Failure(Missing required value for comparator 'eq' in line 'StringCriterionLine(node,OS,eq,None)',Empty,Empty)))
11:01:07.354 [20762714@qtp-14460880-5] ERROR c.n.r.r.ldap.LDAPEntityMapper - Failure(Error when parsing query for node group persisted at DN 'nodeGroupId=1d430ead-0b30-4719-ace3-381c30e41c4f,groupCategoryId=53cd1160-4b9b-4bed-91bd-bf44af0d9ee6,groupCategoryId=41b9017d-79c8-4047-8d24-a05f22d5fc31,groupCategoryId=GroupRoot,ou=Rudder,cn=rudder-configuration' (name: 'wxcvxwvxv'), that seems to be an inconsistency. You should modify that group,Empty,Full(Failure(Missing required value for comparator 'eq' in line 'StringCriterionLine(node,OS,eq,None)',Empty,Empty)))
11:01:09.817 [28174326@qtp-14460880-4] ERROR c.n.r.r.ldap.LDAPEntityMapper - Failure(Error when parsing query for node group persisted at DN 'nodeGroupId=1d430ead-0b30-4719-ace3-381c30e41c4f,groupCategoryId=53cd1160-4b9b-4bed-91bd-bf44af0d9ee6,groupCategoryId=41b9017d-79c8-4047-8d24-a05f22d5fc31,groupCategoryId=GroupRoot,ou=Rudder,cn=rudder-configuration' (name: 'wxcvxwvxv'), that seems to be an inconsistency. You should modify that group,Empty,Full(Failure(Missing required value for comparator 'eq' in line 'StringCriterionLine(node,OS,eq,None)',Empty,Empty)))
Updated by François ARMAND almost 13 years ago
- Target version changed from 2.4.0~alpha4 to 2.4.0~alpha5
Updated by François ARMAND almost 13 years ago
- Status changed from New to Pending technical review
- % Done changed from 0 to 100
Applied in changeset 2ace8766f91818e3dc1dc1a9da0af47af216cd13.
Updated by Nicolas CHARLES almost 13 years ago
- Status changed from Pending technical review to Released