<< Back to previous view

[QB-496] A variable where "allow emtpy" is set to "no" is allowed to be empty
Created: 04/Jan/10  Updated: 02/Mar/10

Status: Resolved
Project: QuickBuild
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Roger Perkins Assigned To: Robin Shen
Resolution: Fixed Votes: 0
Remaining Estimate: Unknown Time Spent: Unknown
Original Estimate: Unknown

File Attachments: File test-var    

 Description   

Added a variable to a configuration, set it's value to "true", "prompt as selection box", set "allow empty" to be "false", add two choices "true" and "false". Kick off a build, you're prompted for the value of the variable with the value defaulting to being empty. Click "OK" and the build will continue, despite "allow empty" set to "false". This seems broken.

This occured when using QB v2.0.12 (version list above doesn't seem to list any recent v2 versions)

 Comments   
Comment by Robin Shen [ 04/Jan/10 11:31 PM ]
Can not reproduce this at my side. Would you mind sending your database with detailed steps reproducing this?

Thanks
Comment by Roger Perkins [ 05/Jan/10 03:36 PM ]
All I did was create a Config... add a variable.... it's a selection box with two values... first time it prompts for the value it defaults to "empty" and happily lets you select that despite "allow empty" being set to false. If you do pick either of the two values, next time around it shows the previous value, but still populates the drop-down with an "empty" value which it'll happily let you select and click OK to proceed.
Comment by Robin Shen [ 06/Jan/10 12:59 AM ]
Run exactly the same steps but still can not get it reproduced. What is your browser? If it can be easily reproduced at your side, can you do the favor of sending the sample database demonstrating the behavior?

Thanks a lot.
Robin
Comment by Roger Perkins [ 20/Jan/10 12:20 PM ]
Here's a test configuration. When you run it you should get prompted to select true or false from the drop-down, however you'll also always get an "empty" option in the drop list. You shouldn't be seeing an empty slot and definately shouldn't be allowed to select it when "allow empty" isn't selected.

I've seen this with the server running on Windows x86 and x64 when used in conjunction with IE8, Safari and Chrome.
Comment by Robin Shen [ 21/Jan/10 02:30 AM ]
Thanks for sending the sample. I did get it reproduced. QuickBuild has some bug when handling variable names containing upper-case characters. And we will address the issue.
A temporal workaround for now is to change the variable name from "TEST_VAR" to "test_var".
Generated at Fri Oct 03 22:36:29 UTC 2025 using JIRA 189.