Skip to content
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

Bump Nokogiri #5182

Merged
merged 3 commits into from Apr 22, 2020
Merged

Bump Nokogiri #5182

merged 3 commits into from Apr 22, 2020

Conversation

luisramos0
Copy link
Contributor

@luisramos0 luisramos0 commented Apr 7, 2020

What? Why?

I think I just fixed our only critical severity security issue 🎉
https://github.com/openfoodfoundation/openfoodnetwork/network/alert/Gemfile.lock/nokogiri/closed

We can remove deface from spree_core now that we dont use spree_backend and spree_i18n and better_spree_paypal dont use deface. This is done in openfoodfoundation/spree#42 for current spree 2-0-4 and in openfoodfoundation/spree#42 for the next spree 2-1-0.

After removing deface from spree we can just remove nokogiri from our concerns and let it upgrade through the other gems that depend on it 🎉

The paperclip requirement in spree_core changed but our version 3.4.2 is good for it, no paper_clip upgrade in this PR.

What should we test?

Maybe a sanity check? I think this is a fundamental piece of software so we would see problem in the build if there were any.

Release notes

Changelog Category: Fixed
Fixed long standing critical security issue in OFN related to a dependency with security problems 🎉

@luisramos0 luisramos0 self-assigned this Apr 7, 2020
@luisramos0 luisramos0 changed the title Nokogiri Bump Nokogiri Apr 7, 2020
@luisramos0
Copy link
Contributor Author

This can only go after the spree PRs are merged.

@luisramos0 luisramos0 changed the title Bump Nokogiri Bump Nokogiri and Paperclip Apr 9, 2020
@luisramos0
Copy link
Contributor Author

ready for review.

@luisramos0
Copy link
Contributor Author

if you have reviewed this PR you can probably quickly review this one #5194 that updates the spree revision on the 3-0-stable version.

Copy link
Contributor

@sauloperez sauloperez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is very good news! 💪

We should watch out with Paperclip upgrades. Upgrading it in the past proved to be tricky because it had backward-incompatible changes. I'd double-check their release notes.

@luisramos0 luisramos0 changed the title Bump Nokogiri and Paperclip Bump Nokogiri Apr 9, 2020
@luisramos0
Copy link
Contributor Author

luisramos0 commented Apr 9, 2020

It's just my mistake!!! the require in spree_core changed but our version remains the same 🙈
No paper_clip change here.
image

@filipefurtad0 filipefurtad0 added the pr-staged-fr staging.coopcircuits.fr label Apr 22, 2020
@filipefurtad0 filipefurtad0 self-assigned this Apr 22, 2020
@filipefurtad0
Copy link
Contributor

Hi @luisramos0,

I performed a basic sanity check:

  • Creating hub/customer
  • Setting a product/OC/payment and delivery method
  • Making a cash-purchase
  • Getting all the right emails during the process.

All good - moving to ready to go.

@filipefurtad0 filipefurtad0 removed the pr-staged-fr staging.coopcircuits.fr label Apr 22, 2020
@luisramos0 luisramos0 merged commit 3dff11e into openfoodfoundation:master Apr 22, 2020
@luisramos0 luisramos0 deleted the nokogiri branch April 22, 2020 19:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants