Red Hat Bugzilla – Bug 874313
Cannot add text to Test Scenario GIVEN Text Field
Last modified: 2013-10-10 20:06:03 EDT
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):
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.
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.
Text should be allowed to be entered into this text field without the above workaround.
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.
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)
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.
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.
Commit done. Looks like the bot reset the flags. Should I revert my changes?
Commited, changing to MODIFIED.
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.