Actions
Bug #19358
closedSessions does not work with RestClient < 1.8.0
Status:
Closed
Priority:
Normal
Assignee:
Category:
Server settings
Target version:
Difficulty:
easy
Triaged:
Team Backlog:
Description
When using session with RestClient 1.6.9 I'm getting
[DEBUG 2017-04-24T12:29:03 API] Using authenticator: HammerCLIForeman::Api::SessionAuthenticatorWrapper [ERROR 2017-04-24T12:29:03 API] uninitialized constant HammerCLIForeman::Api::SessionAuthenticatorWrapper::HTTP [DEBUG 2017-04-24T12:29:03 API] #<NameError: uninitialized constant HammerCLIForeman::Api::SessionAuthenticatorWrapper::HTTP> [ERROR 2017-04-24T12:29:03 Exception] Error: uninitialized constant HammerCLIForeman::Api::SessionAuthenticatorWrapper::HTTP Error: uninitialized constant HammerCLIForeman::Api::SessionAuthenticatorWrapper::HTTP [ERROR 2017-04-24T12:29:03 Exception] NameError (uninitialized constant HammerCLIForeman::Api::SessionAuthenticatorWrapper::HTTP): /home/mbacovsk/work/theforeman/Hammer/hammer-cli-foreman/lib/hammer_cli_foreman/api/session_authenticator_wrapper.rb:38:in `authenticate' /home/mbacovsk/work/theforeman/Hammer/apipie-bindings/lib/apipie_bindings/rest_client_extensions.rb:14:in `block in <module:RestClientExtensions>' /home/mbacovsk/.gem/ruby/gems/rest-client-1.6.9/lib/restclient/request.rb:201:in `block in transmit' /home/mbacovsk/.gem/ruby/gems/rest-client-1.6.9/lib/restclient/request.rb:200:in `each' /home/mbacovsk/.gem/ruby/gems/rest-client-1.6.9/lib/restclient/request.rb:200:in `transmit' /home/mbacovsk/.gem/ruby/gems/rest-client-1.6.9/lib/restclient/request.rb:68:in `execute' /home/mbacovsk/.gem/ruby/gems/rest-client-1.6.9/lib/restclient/request.rb:35:in `execute' /home/mbacovsk/.gem/ruby/gems/rest-client-1.6.9/lib/restclient/resource.rb:51:in `get' /home/mbacovsk/work/theforeman/Hammer/apipie-bindings/lib/apipie_bindings/api.rb:324:in `call_client' /home/mbacovsk/work/theforeman/Hammer/apipie-bindings/lib/apipie_bindings/api.rb:240:in `http_call' /home/mbacovsk/work/theforeman/Hammer/apipie-bindings/lib/apipie_bindings/api.rb:190:in `call_action' /home/mbacovsk/work/theforeman/Hammer/apipie-bindings/lib/apipie_bindings/api.rb:185:in `call' /home/mbacovsk/work/theforeman/Hammer/apipie-bindings/lib/apipie_bindings/resource.rb:21:in `call' /home/mbacovsk/work/theforeman/Hammer/hammer-cli/lib/hammer_cli/apipie/command.rb:43:in `send_request' /home/mbacovsk/work/theforeman/Hammer/hammer-cli-foreman/lib/hammer_cli_foreman/commands.rb:158:in `send_request' /home/mbacovsk/work/theforeman/Hammer/hammer-cli-foreman/lib/hammer_cli_foreman/commands.rb:248:in `send_request' /home/mbacovsk/work/theforeman/Hammer/hammer-cli-foreman/lib/hammer_cli_foreman/commands.rb:271:in `execute' /home/mbacovsk/.gem/ruby/gems/clamp-1.1.2/lib/clamp/command.rb:63:in `run' /home/mbacovsk/work/theforeman/Hammer/hammer-cli/lib/hammer_cli/abstract.rb:27:in `run' /home/mbacovsk/.gem/ruby/gems/clamp-1.1.2/lib/clamp/subcommand/execution.rb:11:in `execute' /home/mbacovsk/.gem/ruby/gems/clamp-1.1.2/lib/clamp/command.rb:63:in `run' /home/mbacovsk/work/theforeman/Hammer/hammer-cli/lib/hammer_cli/abstract.rb:27:in `run' /home/mbacovsk/.gem/ruby/gems/clamp-1.1.2/lib/clamp/subcommand/execution.rb:11:in `execute' /home/mbacovsk/.gem/ruby/gems/clamp-1.1.2/lib/clamp/command.rb:63:in `run' /home/mbacovsk/work/theforeman/Hammer/hammer-cli/lib/hammer_cli/abstract.rb:27:in `run' /home/mbacovsk/.gem/ruby/gems/clamp-1.1.2/lib/clamp/command.rb:132:in `run' /home/mbacovsk/work/theforeman/Hammer/hammer-cli/bin/hammer:147:in `<top (required)>' /home/mbacovsk/.gem/ruby/bin/hammer:22:in `load' /home/mbacovsk/.gem/ruby/bin/hammer:22:in `<main>'
Hammer is missing dependency on http-cookie which is added by rest-client >= 1.8.0
Actions