Bug #21718
closedClicking "Load DataCenters" with no url on a new compute resource causes an error instead of validation message
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1481991
Description of problem: Creating a new RHEV compute resource with no url presents an error message "undefined method `+' for nil:NilClass" instead of showing a validation error about the empty url.
Version-Release number of selected component (if applicable): 6.3 Snap 11
Steps to Reproduce:
1. Go to "Infrastructure" -> "Compute resources"
2. Click "Create compute resource"
3. Choose "Provider" RHEV
4. Click "Load Datacenters"
Actual results: undefined method `+' for nil:NilClass
Expected results: validation message: url can't be blank
Additional info: When clicking submit instead of "Load Datacenters" the same message appears with "Oops, we're sorry but something went wrong undefined method `+' for nil:NilClass" (screenshot attached)
Files
Updated by Adam Ruzicka about 7 years ago
- File Screenshot_20171121_122143.png Screenshot_20171121_122143.png added
- Status changed from New to Assigned
- Assignee set to Adam Ruzicka
- Target version set to 233
The following block shouldn't be displayed in this case, validations next to the URL field are enough.
Unable to save
bad URI(no host provided): http:///datacenters?search=
Updated by The Foreman Bot about 7 years ago
- Status changed from Assigned to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/5015 added
Updated by Ivan Necas about 7 years ago
- Status changed from Ready For Testing to Closed
- Translation missing: en.field_release set to 296