Bug #13920
closed
arvados-cli fails with ruby versions >= 2.3.7
Added by Lucas Di Pentima over 6 years ago.
Updated about 6 years ago.
Estimated time:
(Total: 0.00 h)
Release relationship:
Auto
Description
When using arvados-cli
with ruby 2.3.7 or above, it errors out with the following error message:
Failed to connect to Arvados API server: header field value cannot include CR/LF
The issue is caused by the fact that newer versions of Ruby don't accept \n
on header fields, and the google-api-client
gem we're using sometimes adds it.
One option is to upgrade the google-api-client
gem to version 0.20.0 or above (see https://github.com/google/google-api-ruby-client/pull/648/commits/ee8c922dbf9cef79284d4b83d16d4d73008a6e8f) but that's isn't trivial because from version 0.9 onwards, this gem significantly changed its way of working, and it's not compatible with our arvados
gem.
The other option would be to monkeypatch the google-api-client
gem from our own arvados
gem.
How to test:
1. Build the new arvados
gem
2. With rvm install ruby 2.3.7 or 2.4.4
3. Create a gemset and install the newly created arvados
gem and then install arvados-cli
gem
4. Set up vars to access some arvados instance
5. Execute "arv user current
", it should work without issues.
- Status changed from In Progress to Resolved
- Related to Bug #14153: [gem] make google-api-client compatible with ruby 2.3.7 added
- Related to Bug #16043: There was an error while trying to load the gem 'arvados'.Gem Load Error is: can't modify frozen String added
- Related to Bug #17738: [ruby] sudden gem load errors on ubuntu 18.04 (ruby 2.5.1) added
Also available in: Atom
PDF