Bug 537071

Summary: samba: add share resource fail if added with maximum length characters input for 'Resource Name' and 'Name' fields from iManage UI
Product: [Other] RHQ Project Reporter: Rajan Timaniya <rtimaniy>
Component: ConfigurationAssignee: RHQ Project Maintainer <rhq-maint>
Status: CLOSED WONTFIX QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: 1.4CC: jshaughn, whayutin
Target Milestone: ---Keywords: SubBug
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-05-16 13:54:24 UTC Type: ---
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: 545537, 565628    
Attachments:
Description Flags
screenshot for exception none

Description Rajan Timaniya 2009-11-12 11:51:09 UTC
Created attachment 369197 [details]
screenshot for exception

Description of problem:
samba: add share resource fail if added with maximum length characters input for 'Resource Name' and 'Name' fields from iManage UI
Test case: https://engineering.redhat.com/trac/IntegratedMgmtQE/wiki/Spearhead_RHEL_config_samba_Testplan
(User_story_278:Testcase -24)

Version-Release number of selected component (if applicable):
version: 1.4.0-SNAPSHOT

How reproducible:


Steps to Reproduce:
1. Connect to iManage (http://dhcp6-150.pnq.redhat.com:7080/Login.do) 
2. Log in into iManage using appropriate credential (rhqadmin/rhqadmin) 
3. Click on 'Overview -> Dashboard' 
4. Click on 'Samba Server' under 'Recently Added Resources' section 
5. Click on 'inventory' 
6. Select 'Create New: -Samba Share' then click on 'OK' 
7. Input following property values 
	Resource Name: rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr....
	Name * : 
rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr....
8. Click on 'SUBMIT' 

  
Actual results:
add resource fail with following exception
Failed to send create resource request to agent. Cause: javax.ejb.EJBException:java.lang.RuntimeException: javax.transaction.RollbackException: [com.arjuna.ats.internal.jta.transaction.arjunacore.commitwhenaborted] [com.arjuna.ats.internal.jta.transaction.arjunacore.commitwhenaborted] Can't commit because the transaction is in aborted state -> java.lang.RuntimeException:javax.transaction.RollbackException: [com.arjuna.ats.internal.jta.transaction.arjunacore.commitwhenaborted] [com.arjuna.ats.internal.jta.transaction.arjunacore.commitwhenaborted] Can't commit because the transaction is in aborted state -> javax.transaction.RollbackException:[com.arjuna.ats.internal.jta.transaction.arjunacore.commitwhenaborted] [com.arjuna.ats.internal.jta.transaction.arjunacore.commitwhenaborted] Can't commit because the transaction is in aborted state -> javax.persistence.PersistenceException:org.hibernate.exception.DataException: Could not execute JDBC batch update -> org.hibernate.exception.DataException:Could not execute JDBC batch update -> java.sql.BatchUpdateException:Batch entry 0 insert into RHQ_CREATE_RES_HIST (ERROR_MESSAGE, SUBJECT_NAME, CTIME, MTIME, PARENT_RESOURCE_ID, CREATED_RESOURCE_NAME, NEW_RESOURCE_KEY, STATUS, RESOURCE_TYPE_ID, CONFIGURATION_ID, INSTALLED_PACKAGE_ID, id) values (NULL, 'rhqadmin', '1258102823159', '1258102823159', '10005', 'a123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890', NULL, 'IN_PROGRESS', '10092', '11589', NULL, '10053') was aborted. Call getNextException to see the cause.[SQLException=Batch entry 0 insert into RHQ_CREATE_RES_HIST (ERROR_MESSAGE, SUBJECT_NAME, CTIME, MTIME, PARENT_RESOURCE_ID, CREATED_RESOURCE_NAME, NEW_RESOURCE_KEY, STATUS, RESOURCE_TYPE_ID, CONFIGURATION_ID, INSTALLED_PACKAGE_ID, id) values (NULL, 'rhqadmin', '1258102823159', '1258102823159', '10005', 'a123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890', NULL, 'IN_PROGRESS', '10092', '11589', NULL, '10053') was aborted. Call getNextException to see the cause. -> ERROR: value too long for type character varying(500)(error-code=0,sql-state=22001)]

Expected results:
There should give proper user error/alert message for maximum length.

Additional info:
It doesn't show under fail entry of history section.

Comment 1 wes hayutin 2010-02-16 16:54:18 UTC
Temporarily adding the keyword "SubBug" so we can be sure we have accounted for all the bugs.

keyword:
new = Tracking + FutureFeature + SubBug

Comment 2 wes hayutin 2010-02-16 16:59:42 UTC
making sure we're not missing any bugs in rhq_triage

Comment 3 Corey Welton 2010-10-05 13:08:14 UTC
Lowering severity/priority - not an enterprise plugin