jenkins_api_client icon indicating copy to clipboard operation
jenkins_api_client copied to clipboard

Missing crumbRequestField leads to undefined method `downcase'

Open grosser opened this issue 7 years ago • 0 comments

idk how this happened but I just saw a weird error were crumbRequestField was not set, so request[@crumb["crumbRequestField"]] = @crumb["crumb"] does request[nil] = foo and that blows up in /net/http/generic_request.rb:71 in []=

is it supposed to be @crumb.fetch("crumbRequestField") -> fail if it is not set or request[@crumb["crumbRequestField"]] = @crumb["crumb"] if @crumb["crumbRequestField"] -> ignore if it is not set ?

grosser avatar Feb 15 '18 01:02 grosser