Bug 1081173
| Summary: | [REST API] NullPointerException thrown when importing a template without specifying storage domain | ||
|---|---|---|---|
| Product: | [Retired] oVirt | Reporter: | Juan Hernández <juan.hernandez> |
| Component: | ovirt-engine-core | Assignee: | Maor <mlipchuk> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Raz Tamir <ratamir> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 3.4 | CC: | acathrow, amureini, bazulay, gklein, iheim, mishka8520, mlipchuk, oramraz, pnovotny, Rhev-m-bugs, yeylon |
| Target Milestone: | --- | ||
| Target Release: | 3.4.1 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | storage | ||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | 1081132 | Environment: | |
| Last Closed: | 2014-05-08 13:37:30 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | Storage | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | |||
| Bug Blocks: | 1081132 | ||
|
Description
Juan Hernández
2014-03-26 17:05:11 UTC
Please also verify importing a VM without specifying storage domain Maor, whay did you merge this path? i nack'ed it before [1] as it breaks backward compatability, before that [storageDomain.id|name] was not mandatory and engine was using default SD when user does not supply it (alonm confirmed that). [1] http://gerrit.ovirt.org/#/c/26127/ Hi Michael, I was aware to the backward compatibility issue, and also discussed it with Allon and Juan. I've checked and validated the code in the REST and engine, (also checked with git history) and I have found that the NPE was caused in the REST side at AbstractBackendStorageDomainContentResource#getDestStorageDomainId In the REST code, there is an attempt to get the storage id although there was no storage passed in the request, that what caused the NPE. Considering that I don't see any way the code worked without storage ever. I have also updated the commit message to indicate that: "...The patch should keep backward compatibility since before it, we got an NPE, and now it is being replaced with an informative message." This is an automated message oVirt 3.4.1 has been released: * should fix your issue * should be available at your local mirror within two days. If problems still persist, please make note of it in this bug report. |