Bug 1599349
| Summary: | API with an invalid zone name kill the appliance | |||
|---|---|---|---|---|
| Product: | Red Hat CloudForms Management Engine | Reporter: | Satoe Imaishi <simaishi> | |
| Component: | API | Assignee: | Julian Cheal <jcheal> | |
| Status: | CLOSED ERRATA | QA Contact: | Jaroslav Henner <jhenner> | |
| Severity: | medium | Docs Contact: | ||
| Priority: | high | |||
| Version: | 5.9.0 | CC: | bsorota, cpelland, dmetzger, fdewaley, gekis, greartes, gtanzill, jcheal, jprause, mkourim, obarenbo, smallamp | |
| Target Milestone: | GA | Keywords: | ZStream | |
| Target Release: | 5.9.5 | |||
| Hardware: | Unspecified | |||
| OS: | Unspecified | |||
| Whiteboard: | ||||
| Fixed In Version: | 5.9.5.0 | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | ||
| Clone Of: | 1595158 | |||
| : | 1648808 (view as bug list) | Environment: |
5.9
|
|
| Last Closed: | 2018-11-05 13:58:27 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: | 1595158 | |||
| Bug Blocks: | 1648808 | |||
|
Comment 2
CFME Bot
2018-07-11 14:15:56 UTC
On 5.9.4.2 it's possible to change zone settings to non-existent zone.
Expected behavior is that only valid zone names are allowed.
PATCH /api/servers/1/settings
{
"server": {
"zone": "Non Existent"
}
}
Response:
...
"server": {
...
"zone": "Non Existent"
Update to comment #3: The appliance keeps functioning after the zone is changed to invalid setting. PR to fix this https://github.com/ManageIQ/manageiq/pull/17892 New commit detected on ManageIQ/manageiq/gaprindashvili: https://github.com/ManageIQ/manageiq/commit/1ee2efb07e813c581507acd08d1eec24f967479c commit 1ee2efb07e813c581507acd08d1eec24f967479c Author: Brandon Dunne <brandondunne> AuthorDate: Wed Aug 22 17:14:09 2018 -0400 Commit: Brandon Dunne <brandondunne> CommitDate: Wed Aug 22 17:14:09 2018 -0400 Merge pull request #17892 from juliancheal/fix_invalid_zone Ensure Zone data is Valid (cherry picked from commit 2b06c5daec30c7d00871b3d3503cb4475aee0948) Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1599349 lib/vmdb/config/validator.rb | 7 + 1 file changed, 7 insertions(+) New commit detected on ManageIQ/manageiq/gaprindashvili: https://github.com/ManageIQ/manageiq/commit/f765ee0454abc0ded6ea169d8bb14bb726f503fa commit f765ee0454abc0ded6ea169d8bb14bb726f503fa Author: Jason Frey <fryguy9> AuthorDate: Tue Sep 18 13:42:42 2018 -0400 Commit: Jason Frey <fryguy9> CommitDate: Tue Sep 18 13:42:42 2018 -0400 Merge pull request #17994 from juliancheal/fix_spelling Fixed spelling error (cherry picked from commit 156cd6b949e5bc4837edd1d76e47e643d9250040) https://bugzilla.redhat.com/show_bug.cgi?id=1599349 lib/vmdb/config/validator.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) On 5.9.5.2: $ curl -k https://10.16.5.91/api/servers/1/settings -u admin:smartvm --data @/tmp/data -XPATCH {"error":{"kind":"internal_server_error","message":"configuration invalid","klass":"RuntimeError"}}% $ cat /tmp/data { "server": { "name": "Test Name", "zone": "de fault"}} In 5.9.4.7 I am allowed to change the zone. 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:3466 *** Bug 1648808 has been marked as a duplicate of this bug. *** |