Project

General

Profile

Actions

Bug #19358

closed

Sessions does not work with RestClient < 1.8.0

Added by Martin Bacovsky over 7 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Category:
Server settings
Difficulty:
easy
Triaged:
Team Backlog:
Fixed in Releases:
Found in Releases:
In Kanboard:

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 #1

Updated by Martin Bacovsky over 7 years ago

  • Translation missing: en.field_release set to 246
Actions #2

Updated by The Foreman Bot over 7 years ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/theforeman/hammer-cli-foreman/pull/306 added
Actions #3

Updated by Martin Bacovsky over 7 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF