Bug 990687

Summary: Adding 256 char default custom info keyname for distributors at organization level renders success message. Default info sync thereafter fails.
Product: [Retired] Subscription Asset Manager Reporter: Apurva Bhole <abhole>
Component: katelloAssignee: Adam Price <adprice>
Status: CLOSED WONTFIX QA Contact: sthirugn <sthirugn>
Severity: medium Docs Contact:
Priority: unspecified    
Version: NightlyCC: adprice, ehelms, gkhachik, jmontleo, omaciel, sthirugn
Target Milestone: rcKeywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-04-30 17:22:40 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:
Bug Depends On:    
Bug Blocks: 971511    

Description Apurva Bhole 2013-07-31 18:37:25 UTC
Description of problem:
When trying to add a default custom info keyname 256 characters long, a success message is displayed. But trying to sync this or any other valid custom info thereafter fails. 

Version-Release number of selected component (if applicable):
katello-common-1.4.2-1.git.997.e699743.el6.noarch
katello-headpin-all-1.4.2-1.git.997.e699743.el6.noarch
katello-selinux-1.4.3-1.git.4.99dc194.el6.noarch
katello-candlepin-cert-key-pair-1.0-1.noarch
katello-cli-1.4.2-1.git.137.fea0d84.el6.noarch
signo-katello-0.0.9-1.el6.noarch
katello-glue-candlepin-1.4.2-1.git.997.e699743.el6.noarch
katello-certs-tools-1.4.2-1.el6.noarch
katello-headpin-1.4.2-1.git.997.e699743.el6.noarch
katello-repos-1.4.2-1.el6.noarch
katello-cli-common-1.4.2-1.git.137.fea0d84.el6.noarch
katello-configure-1.4.3-1.git.67.f71e590.el6.noarch
katello-glue-elasticsearch-1.4.2-1.git.997.e699743.el6.noarch


How reproducible:
Everytime

Steps to Reproduce:
1. org create --name Org1 
2. distributor create --name dist1 --org Org1
3. org default_info add --name Org1 --keyname <key256char> --type distributor
# success message
4. org default_info sync --name Org1 --type distributor
# failed to sync
5. org default_info add --name Org1 --keyname 'FirstKey' --type distributor
# success message
6. org default_info sync --name Org1 --type distributor
# failed to sync

Actual results:
As described above. Result of adding the default info shows success. default_info sync fails.

Expected results:
Validation error: Keyname cannot exceed 256 characters
The other valid default info addition and sync thereafter should work fine too.

Comment 2 Adam Price 2013-10-01 15:13:58 UTC
default_info is correctly limited to 255 characters

Comment 4 Mike McCune 2013-10-17 21:02:48 UTC
Moving this to be tested during MDP3, not critical for MDP2 success story

Comment 7 sthirugn@redhat.com 2014-04-30 16:21:45 UTC
Custom distributors not applicable to Sat6.  Moving back to SAM.

Comment 8 sthirugn@redhat.com 2014-04-30 17:22:40 UTC
Custom distributors will not be worked as of now.  It may possibly be redone in future.