Bug 1134954
Summary: | Call on apipie resource is too verbose in case of erroneous response | ||
---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Matej Kollar <mkollar> |
Component: | Hammer | Assignee: | Martin Bacovsky <mbacovsk> |
Status: | CLOSED ERRATA | QA Contact: | Corey Welton <cwelton> |
Severity: | high | Docs Contact: | |
Priority: | unspecified | ||
Version: | Unspecified | CC: | achan, bbuckingham, cperry, cwelton, dcleal, jmontleo, mbacovsk, mkollar, mmccune, omaciel, sthirugn, xdmoon |
Target Milestone: | Unspecified | Keywords: | Triaged |
Target Release: | Unused | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
URL: | https://github.com/Apipie/apipie-bindings/pull/15 | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: |
Previously, API call unhandled exceptions were being passed to the client. These exceptions can be cryptic in nature. Now, when an unhandled exception happens on an API call, the error is translated to a debug message and passed to the client.
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2014-11-13 22:28:55 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: | |||
Bug Depends On: | |||
Bug Blocks: | 1134809 |
Description
Matej Kollar
2014-08-28 13:46:52 UTC
The PR was merged in apipie-bindings upstream Has a new gem been released for this? apipie-bindings is built from gem downstream and it looks like 0.0.8 is still latest. Gem 0.0.9 was released. Updated upstream spec is here https://github.com/theforeman/foreman-packaging/tree/rpm/develop/rubygem-apipie-bindings Matej, can you provide an example of the erroneous output and the impact of this to the user? Nothing to test from QE stand point. Reassigning back to lpramuk The problem was that the apipie-bindings logged error caught from server and re-risen it. While it was logged on ERROR loglevel, it was difficult to hide this message even when the server error was recovered. I'm not sure about import tool, but from hammer it could be tested while creating entity that already exists e.g. architecture: $> hammer -d architecture create --name x86_64 In the log there should be the message form API present with DEBUG log level (instead of ERROR) [DEBUG 2014-10-27 11:36:48 API] 422 Unprocessable Entity Verified in latest compose Satellite-6.0.4-RHEL-7-20141029.5 [DEBUG 2014-11-06 09:58:15 API] 422 Unprocessable Entity 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/RHBA-2014:1857 The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days |