Bug 1156576
| Summary: | NPE During Hypervisor Checkin | ||
|---|---|---|---|
| Product: | [Community] Candlepin (Migrated to Jira) | Reporter: | Dennis Crissman <dcrissman> |
| Component: | candlepin | Assignee: | Michael Stead <mstead> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Katello QA List <katello-qa-list> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 0.9 | CC: | bkearney, mstead |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2019-09-24 17:06:12 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Dennis Crissman
2014-10-24 17:05:30 UTC
The NPE was occurring if a request was made with an empty body. This was fixed by checking for a null host to guest mapping and throwing a BadRequestException. I had considered equating the null data as an empty mapping and allowing the request to succeed, but IMO the request should be made with at least an empty mapping. Pull Request awaiting review: https://github.com/candlepin/candlepin/pull/797 |