Bug 691505 - Very long Dynagroup names cause stack trace - field should be limited to 100 chars
Summary: Very long Dynagroup names cause stack trace - field should be limited to 100 ...
Keywords:
Status: CLOSED DUPLICATE of bug 734231
Alias: None
Product: RHQ Project
Classification: Other
Component: Core UI
Version: 4.0.0.B02
Hardware: Unspecified
OS: Unspecified
medium
low
Target Milestone: ---
: ---
Assignee: Mike Thompson
QA Contact: Mike Foley
URL:
Whiteboard:
Depends On:
Blocks: gwt-dynagroups rhq-uxd
TreeView+ depends on / blocked
 
Reported: 2011-03-28 17:46 UTC by Corey Welton
Modified: 2012-01-27 21:25 UTC (History)
3 users (show)

Fixed In Version: 4.3
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-01-27 15:25:21 UTC
Embargoed:


Attachments (Terms of Use)

Description Corey Welton 2011-03-28 17:46:33 UTC
Description of problem:
The apparent maxlength of dynagroup names is 100 characters.  A user is able to enter more than this in the field, however, and a stacktrace results.  User should be given a hard maximum of 100 in the field.

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


How reproducible:


Steps to Reproduce:
1.  Nav to dynagroup page; create a new dynagroup or edit an existing one.
2.  In the name field, enter > 100 characters.
3.  Stack trace; view Message center error.
  
Actual results:

java.lang.RuntimeException:org.rhq.enterprise.server.resource.group.definition.exception.GroupDefinitionUpdateException:Name is limited to 100 characters
--- STACK TRACE FOLLOWS ---
org.rhq.enterprise.server.resource.group.definition.exception.GroupDefinitionUpdateException:Name is limited to 100 characters
    at Unknown.java_lang_RuntimeException_$RuntimeException__Ljava_lang_RuntimeException_2Ljava_lang_RuntimeException_2(Unknown source:0)
    at Unknown.com_google_gwt_user_client_rpc_core_java_lang_RuntimeException_1FieldSerializer_instantiate__Lcom_google_gwt_user_client_rpc_SerializationStreamReader_2Ljava_lang_RuntimeException_2(Unknown source:0)
    at Unknown.com_google_gwt_user_client_rpc_impl_SerializerBase$MethodMap_$instantiate__Lcom_google_gwt_user_client_rpc_impl_SerializerBase$MethodMap_2Lcom_google_gwt_user_client_rpc_SerializationStreamReader_2Ljava_lang_String_2Ljava_lang_Object_2(Unknown source:0)
    at Unknown.com_google_gwt_user_client_rpc_impl_SerializerBase_$instantiate__Lcom_google_gwt_user_client_rpc_impl_SerializerBase_2Lcom_google_gwt_user_client_rpc_SerializationStreamReader_2Ljava_lang_String_2Ljava_lang_Object_2(Unknown source:0)
    at Unknown.com_google_gwt_user_client_rpc_impl_AbstractSerializationStreamReader_$readObject__Lcom_google_gwt_user_client_rpc_impl_AbstractSerializationStreamReader_2Ljava_lang_Object_2(Unknown source:0)
    at Unknown.com_google_gwt_user_client_rpc_impl_RequestCallbackAdapter_$onResponseReceived__Lcom_google_gwt_user_client_rpc_impl_RequestCallbackAdapter_2Lcom_google_gwt_http_client_Request_2Lcom_google_gwt_http_client_Response_2V(Unknown source:0)
    at Unknown.org_rhq_enterprise_gui_coregui_client_util_rpc_TrackingRequestCallback_onResponseReceived__Lcom_google_gwt_http_client_Request_2Lcom_google_gwt_http_client_Response_2V(Unknown source:0)

Expected results:
Since the field is apparently limited to 100 chars, we should probably limit how much users can actually enter into this box.


Additional info:

Comment 1 Corey Welton 2011-03-28 17:53:40 UTC
Actually the same thing goes for Description field.  I'll include that here rather than writing up a new bug for that field.

Comment 2 Mike Thompson 2012-01-27 15:25:21 UTC
I could not reproduce. I checked both the Dynagroup name and description fields with 200 character strings and then again with 50 character strings (for positive and negative test cases).

Comment 3 Ian Springer 2012-01-27 21:25:40 UTC
This is a dup of https://bugzilla.redhat.com/show_bug.cgi?id=734231, which was fixed a while back.

*** This bug has been marked as a duplicate of bug 734231 ***


Note You need to log in before you can comment on or make changes to this bug.