Red Hat Bugzilla – Bug 527714
Entering a non-numeric capacity creates a volume with 10000 MB
Last modified: 2015-06-21 20:07:12 EDT
Description of problem:
When creating a new storage volume for a pool, if I enter a non-numeric value into the max capacity field and click create then a volume is created with the previous numeric value that was in the capacity field.
Version-Release number of selected component (if applicable):
(mcpierce@mcpierce-laptop:~)$ rpm -qf `which virt-manager`
Steps to Reproduce:
1. Open virt-manager, go to details, go to storage tab
2. Click "New Volume"
3. Enter a non-numeric value in the max capacity field
4. Without leaving the field, click "Create Volume"
A volume is created that is the size of previous value in the capacity field.
An error message if the value was non-numeric. Or, if the current value is numeric then that value is used.
I can't reproduce on rawhide: if you enter text in the box then click away, the box sets itself to 1, so maybe this was changed at the gtk level.
Either way, fixing this would require registering focus-in/out events AFAIUI, which I think is more trouble then its worth. Closing as WONTFIX.