-
Notifications
You must be signed in to change notification settings - Fork 111
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade rubyzip to 1.3.0 for known vulnerability #153
Upgrade rubyzip to 1.3.0 for known vulnerability #153
Conversation
BTW rubyzip has also released 2.0 with the flag enabled, let me know if you prefer a more elaborate PR that takes that into account as well |
Selenium relaxed rubyzip version to allow 2.0 ( |
@rhymes Thanks for the PR! I agree with @rwojnarowski. Can you please change the version requirement to be |
Yes, it seems important to merge this to allow downstream projects to start using rubyzip 2.0 |
@kapoorlakshya I relaxed the version but then I'm thinking we might need to check which version is running for the flag here https://github.com/titusfortner/webdrivers/pull/153/files#diff-148937c344e3c9bb067f1360bd9d14b2R7 because if it's below |
@rhymes do we need to set the global flag on Maybe a note in the README recommending users upgrade to rubyzip 2.0, or adding the option to the |
@atsheehan according to the PR rubyzip/rubyzip#403 - it needs to be set if one uses a version I'm not sure why we want to allow versions under I think we should check the version at runtime and act accordingly in relation to the global flag |
I agree there’s no reason to allow < 1.3 on a new release of webdrivers |
@kapoorlakshya can you please merge it and make release as we are facing this issue while using webdrivers. Error:Unable to activate webdrivers-4.1.2, because rubyzip-2.0.0 conflicts with rubyzip (~> 1.0) (Gem::ConflictError)
C:/Ruby26-x64/lib/ruby/2.6.0/rubygems/specification.rb:2302:in `raise_if_conflicts'
C:/Ruby26-x64/lib/ruby/2.6.0/rubygems/specification.rb:1418:in `activate'
C:/Ruby26-x64/lib/ruby/2.6.0/rubygems.rb:223:in `rescue in try_activate'
C:/Ruby26-x64/lib/ruby/2.6.0/rubygems.rb:216:in `try_activate'
C:/Ruby26-x64/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:123:in `rescue in require' C:/Ruby26-x64/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:34:in `require'
F:/Watir/features/support/env.rb:9:in `<top (required)>'
C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/cucumber-3.1.2/lib/cucumber/glue/registry_and_more.rb:107:in `load'
C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/cucumber-3.1.2/lib/cucumber/glue/registry_and_more.rb:107:in `load_code_file'
C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/cucumber-3.1.2/lib/cucumber/runtime/support_code.rb:144:in `load_file'
C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/cucumber-3.1.2/lib/cucumber/runtime/support_code.rb:85:in `block in load_files!'
C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/cucumber-3.1.2/lib/cucumber/runtime/support_code.rb:84:in `each'
C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/cucumber-3.1.2/lib/cucumber/runtime/support_code.rb:84:in `load_files!'
C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/cucumber-3.1.2/lib/cucumber/runtime.rb:272:in `load_step_definitions'
C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/cucumber-3.1.2/lib/cucumber/runtime.rb:68:in `run!'
C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/cucumber-3.1.2/lib/cucumber/cli/main.rb:34:in `execute!' C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/cucumber-3.1.2/bin/cucumber:9:in `<top (required)>'
C:/Ruby26-x64/bin/cucumber:23:in `load'
C:/Ruby26-x64/bin/cucumber:23:in `<main>' |
@rhymes Let's go ahead and change it to back Edit: I just realized you allowed us to edit the PR so I have made the change myself. @anilreddy Yes, will release as soon as the requested change is made. |
Released v4.1.3. Let me know if anything breaks. |
@kapoorlakshya thanks for taking it to the finish line! |
This updates the minimum required version of rubyzip due to a known vulnerability
rubyzip/rubyzip#403
Due to the fact that this gem downloads zip from known and trusted sources it's probably not an urgent update.