Bug 880231

Summary: CCS should check existence before editing
Product: Red Hat Enterprise MRG Reporter: Lubos Trilety <ltrilety>
Component: condor-wallaby-toolsAssignee: Robert Rati <rrati>
Status: CLOSED CURRENTRELEASE QA Contact: Lubos Trilety <ltrilety>
Severity: low Docs Contact:
Priority: low    
Version: DevelopmentCC: ltoscano, matt, rrati
Target Milestone: 2.3Keywords: Regression
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: condor-wallaby-tools-5.0.5-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-03-19 16:40:02 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Lubos Trilety 2012-11-26 14:43:38 UTC
Description of problem:
When user tries to add a new object with already taken name to the store, condor-configure-store first wants to edit attributes of the object and then it fails. Better is to first check the name if it's not taken and after that edit the object. That is how condor-configure-store behaves in previous version of condor-wallaby-tools.


Version-Release number of selected component (if applicable):
condor-wallaby-tools-5.0.3-2.

How reproducible:
100%

Steps to Reproduce:
1. e.g. create some feature
# ccs -a -f Feat
:wq
Console Connection Established...
Adding the following feature: Feat
2. try to add that feature again
# ccs -a -f Feat
:wq
Console Connection Established...
Adding the following feature: Feat
Couldn't create feature Feat (Feature name Feat is already taken)
fatal:  AddFeature returned non-zero

  
Actual results:
The tool need set of object attributes even when the object name is already taken

Expected results:
The object creation is rejected before the editing of object

Additional info:

Comment 2 Robert Rati 2012-12-12 19:14:47 UTC
Fixed upstream on:
BZ880231-check-before-edit

Comment 4 Lubos Trilety 2013-01-10 13:15:54 UTC
Tested with:
condor-wallaby-tools-5.0.5-1

Tested on:
RHEL6 i386,x86_64
RHEL5 i386,x86_64

# ccs -a -f Feat
Console Connection Established...
Adding the following feature: Feat with {}
Modifying the following feature: Feat with {:annotation=>""}

# ccs -a -f Feat
Console Connection Established...
fatal:  Feature(s) Feat already exist

>>> verified