Description of problem: When called @api.resource(resource).call ... returns erroneous response (say in case of creating entity that already exists) it also prints error message in addition to re-raising exception. Version-Release number of selected component (if applicable): rubygem-apipie-bindings-0.0.8-1.el6sat.noarch How reproducible: always/deterministic Steps to Reproduce: 1. try to creat the same org twice 2. catch exception for the second and ignore it Actual results: colourful message is printed Expected results: no message is printed Additional info: maybe change log level to debug...
PR: https://github.com/Apipie/apipie-bindings/pull/15
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