Bug 874313 - Cannot add text to Test Scenario GIVEN Text Field
Summary: Cannot add text to Test Scenario GIVEN Text Field
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: JBoss Enterprise BRMS Platform 5
Classification: JBoss
Component: BRM (Guvnor)
Version: BRMS 5.3.1
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: CR1
: BRMS 5.3.1 GA
Assignee: Toni Rikkola
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-11-07 21:34 UTC by Andrew Collins
Modified: 2025-02-10 03:21 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2025-02-10 03:21:06 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Repository with test scenario (25.70 KB, text/xml)
2012-11-08 17:21 UTC, Sona Mala
no flags Details

Description Andrew Collins 2012-11-07 21:34:20 UTC
Description of problem:
In the Test Scenario editor, when editing the value of a text field of an inserted fact, input into the text box is blocked from [a-zA-Z] input until a digit or any symbol is entered.  Once a symbol/digit is entered in the text field, any character can be inserted into the text box, and the first character can be deleted.

When the cursor is in the 0th position of the text field, even if there is already text in the box, no upper/lowercase letter can be entered.

Version-Release number of selected component (if applicable):
5.3.1.BRMS-ER3

How reproducible:
Always

Steps to Reproduce:
1. Create/Ensure a Fact Type exists with a field of type "String", which will now be referred to as factType.
2. Create new Test Scenario in same package as factType.
3. Insert a factType called 'f' into the Test Scenario.
4. "Add a field" -> Add field with type "String".
5. Enter text into text field.
6. Observe that first character entered is not allowed to be any letter.
  
Actual results:
In order to type text into this field, any symbol/digit must be entered, followed by any text, then the first symbol/digit can be deleted.

Expected results:
Text should be allowed to be entered into this text field without the above workaround.


Additional info:

Comment 1 Sona Mala 2012-11-08 17:15:46 UTC
I analyzed that this problem has occured in 5.3.1 ER2,ER3,ER4. It works in 5.3.1 ER1 and 5.3.0 GA.

I think that it catches any [a-zA-Z] character even if the digits are written before letters. (May be I am wrong). 

Workaround is Copy&Paste but not Ctrl+C and Ctrl+V (it does not work). You must use mouse (right click) and select Paste.

This is really uncomfortable for user. Specially when we have supported it.

I will attached repository with model and testscenario.

Comment 2 Sona Mala 2012-11-08 17:21:54 UTC
Created attachment 640948 [details]
Repository with test scenario

Open test scenario and type any text into (for example: 'abcdABCD123' ; for workaround: copy this text and paste it into input field)

Comment 3 Toni Rikkola 2012-11-12 14:05:08 UTC
I have a fix for this. It was a small change. Each field was treated as a numeric field. I'll wait for a blocker+ before I commit.

Comment 4 Rajesh Rajasekaran 2012-11-14 16:04:21 UTC
It was agreed to pick this bug fix up as this would lead to a broken feature. Please set dev_ack and commit the fix.

Comment 6 Toni Rikkola 2012-11-21 09:12:34 UTC
Commit done. Looks like the bot reset the flags. Should I revert my changes?

Comment 7 Lukáš Petrovický 2012-11-21 13:18:19 UTC
Commited, changing to MODIFIED.

Comment 8 Sona Mala 2012-12-05 12:55:43 UTC
Verified for JBoss EAP 6.0, BRMS 5.3.1 CR1:

There is possible to write any characters into a field which type is String.

There is not possible to write [a-zA-Z] characters into a field which types are Number, BigDecimal.

Comment 16 Red Hat Bugzilla 2025-02-10 03:21:06 UTC
This product has been discontinued or is no longer tracked in Red Hat Bugzilla.


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