History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: QB-496
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: Robin Shen
Reporter: Roger Perkins
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
QuickBuild

A variable where "allow emtpy" is set to "no" is allowed to be empty

Created: 04/Jan/10 06:38 PM   Updated: 02/Mar/10 02:05 AM
Component/s: None
Affects Version/s: None
Fix Version/s: None

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
File Attachments: 1. File test-var (3 kb)



 Description  « Hide

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)

 All   Comments   Work Log   Change History      Sort Order:
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

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.

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

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.

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".