Bug 1648948
| Summary: | Tags responding to `show` with true and having no classification produce 500-level errors for URL of `/api/tags?expand=resources&attributes=category,categorization` | ||
|---|---|---|---|
| Product: | Red Hat CloudForms Management Engine | Reporter: | Satoe Imaishi <simaishi> |
| Component: | Appliance | Assignee: | Julian Cheal <jcheal> |
| Status: | CLOSED ERRATA | QA Contact: | Parthvi Vala <pvala> |
| Severity: | medium | Docs Contact: | Red Hat CloudForms Documentation <cloudforms-docs> |
| Priority: | medium | ||
| Version: | 5.9.4 | CC: | abellott, dmetzger, gtanzill, hkataria, jcheal, jprause, lavenel, mpovolny, obarenbo, smallamp, yrudman |
| Target Milestone: | GA | Keywords: | ZStream |
| Target Release: | 5.9.6 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | 5.9.6.1 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | 1632901 | Environment: | |
| Last Closed: | 2018-12-13 15:15:49 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | CFME Core | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | 1632901 | ||
| Bug Blocks: | 1622587 | ||
|
Comment 2
CFME Bot
2018-11-12 18:25:53 UTC
Hi Julian, I need some information on reproducing this bug. From what I understand, I need to create a tag without any description to reproduce this bug. But there's no possible way to do so either via UI or API. What am I missing here? Can you help me with the steps to reproduce it? Thanks, Parthvi FIXED. Verified on 5.9.6.2.20181119175512_3a18916.
Steps taken to verify:
1) Create a category and tag.
2) SSH into appliance, `vmdb`, and `bin/rails c`.
3) Get the required tag with:
tag = Tag.find_by(name: "/managed/cat_1/tag_1"
4) Delete the classification associated with tag.
tag.classification.delete
5) Send a request.
GET /api/tags?expand=resources&attributes=category,categorization
There was no internal server error or any error in the API log, unlike the version in which this BZ was released(5.9.4.7).
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2018:3816 |