Uh oh!
There was an error while loading. Please reload this page.
HBASE-28250 Bump jruby to 9.4.8.0 to fix snakeyaml CVE - #6127
Conversation
NihalJain
commented
Jul 28, 2024
Please see https://issues.apache.org/jira/browse/HBASE-28250 for RCA |
NihalJain
commented
Jul 28, 2024
This is good for review, except licensing changes, if any, need to analyse! |
| <glassfish.jsp.version>2.3.2</glassfish.jsp.version> | ||
| <glassfish.el.version>3.0.1-b08</glassfish.el.version> | ||
| <jruby.version>9.3.13.0</jruby.version> | ||
| <jruby.version>9.4.8.0</jruby.version> |
There was a problem hiding this comment.
jcoding and joni changes were not needed, hence no change around that here
Apache-HBase
commented
Jul 28, 2024
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
Jul 29, 2024
🎊 +1 overall
This message was automatically generated. |
NihalJain
commented
Jul 29, 2024
Just verified, we do not need any licensing changes as apparently ruby licensing is already in place: https://github.com/ruby/irb/blob/v1.4.2/LICENSE.txt is already there in our LICENSE.txt: Line 617 in 836f2d9 |
Apache9
left a comment
There was a problem hiding this comment.
I'm not a ruby expert but since all UTs are passed, I think it is OK.
Please fix the whilespace issue and also open a PR against branch-2.
Thanks.
Hi just updating how I have been testing out this version bump. First, curated a list of tests based on basic sanity + old JIRAs which were created post version bump. (Plan to automate these for future releases soon) Following are the things i have tested:
Based on point 12 and 14, I suggest to disable colorize and auto_complete which are by default enabled in JRuby 9.4.8.0 and is very buggy Or we could document steps on how to disable it via .irbrc. I will update PR based on how others feel.
Based on point 11, we may need to add removal of import for custom ruby scripts in release notes. Please let me know if I have missed any cases, and should test anything else. |
The previous indent was incorrect, this line indent is as per copied line https://github.com/ruby/irb/blob/f9960dbd370769addca04dda4f1a06d921a4e98d/lib/irb.rb#L461C8-L461C43
Which all branches should we target? Just branch-2 right? Also just wanted to call out again Anyways I have tested my changes on 2.6.0 itself and all work good as shared in previous comment! |
ndimiduk
commented
Jul 31, 2024
Thanks for the thorough testing here. This looks very promising! Re: autocomplete and colors, can we disable them by default and document how to reenable them for the brave? |
ndimiduk
commented
Jul 31, 2024
Should this PR also update all the internal rb scripts to use |
Hi Nick thanks for taking time to review this PR.
I can think of two approaches to implement same:
I have tried our internal ruby scripts: Also I did a quick check with following command: |
NihalJain
commented
Aug 6, 2024
Going ahead to implement and update PR with approach 1. |
Apache-HBase
commented
Aug 6, 2024
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
Aug 7, 2024
🎊 +1 overall
This message was automatically generated. |
NihalJain
commented
Aug 7, 2024
Ping @ndimiduk could you please see if commit 2 addresses your review comment |
NihalJain
commented
Aug 8, 2024
* Sync code as per irb 1.4.2 * Also provide option to try irb's new functionalities for colorize and autocomplete Signed-off-by: Duo Zhang <zhangduo@apache.org> Signed-off-by: Nick Dimiduk <ndimiduk@apache.org> (cherry picked from commit 6788ff4)
ndimiduk
commented
Aug 8, 2024
Yes I think that this can go to branch-2 as well. |
* Sync code as per irb 1.4.2 * Also provide option to try irb's new functionalities for colorize and autocomplete Signed-off-by: Duo Zhang <zhangduo@apache.org> Signed-off-by: Nick Dimiduk <ndimiduk@apache.org> (cherry picked from commit 6788ff4)
NihalJain
commented
Aug 8, 2024
Raised backport for branch-2 as well. May be will request others to add approval on #6146 before we merge that into codebase. |
* Sync code as per irb 1.4.2 * Also provide option to try irb's new functionalities for colorize and autocomplete Signed-off-by: Duo Zhang <zhangduo@apache.org> Signed-off-by: Nick Dimiduk <ndimiduk@apache.org> (cherry picked from commit 6788ff4)
* Sync code as per irb 1.4.2 * Also provide option to try irb's new functionalities for colorize and autocomplete Signed-off-by: Duo Zhang <zhangduo@apache.org> Signed-off-by: Nick Dimiduk <ndimiduk@apache.org> (cherry picked from commit 6788ff4)
…pache#6127) (apache#6146) * Sync code as per irb 1.4.2 * Also provide option to try irb's new functionalities for colorize and autocomplete Signed-off-by: Duo Zhang <zhangduo@apache.org> Signed-off-by: Nick Dimiduk <ndimiduk@apache.org> (cherry picked from commit 6788ff4) (cherry picked from commit d94def3) Change-Id: I978dd2d835534911ca7138f54e58728349a7403f
…pache#6146) * Sync code as per irb 1.4.2 * Also provide option to try irb's new functionalities for colorize and autocomplete Signed-off-by: Duo Zhang <zhangduo@apache.org> Signed-off-by: Nick Dimiduk <ndimiduk@apache.org> (cherry picked from commit 6788ff4) (cherry picked from commit d94def3)
…ml CVE (apache#6127) (apache#6146) * Sync code as per irb 1.4.2 * Also provide option to try irb's new functionalities for colorize and autocomplete Signed-off-by: Duo Zhang <zhangduo@apache.org> Signed-off-by: Nick Dimiduk <ndimiduk@apache.org> (cherry picked from commit 6788ff4) (cherry picked from commit d94def3) (cherry picked from commit a6d54eb) Change-Id: I8fcdfe5dedf4afef870289bed13afaba7e8c111a
* Sync code as per irb 1.4.2 * Also provide option to try irb's new functionalities for colorize and autocomplete Signed-off-by: Duo Zhang <zhangduo@apache.org> Signed-off-by: Nick Dimiduk <ndimiduk@apache.org>
…pache#6146) * Sync code as per irb 1.4.2 * Also provide option to try irb's new functionalities for colorize and autocomplete Signed-off-by: Duo Zhang <zhangduo@apache.org> Signed-off-by: Nick Dimiduk <ndimiduk@apache.org> (cherry picked from commit 6788ff4)
…pache#6146) * Sync code as per irb 1.4.2 * Also provide option to try irb's new functionalities for colorize and autocomplete Signed-off-by: Duo Zhang <zhangduo@apache.org> Signed-off-by: Nick Dimiduk <ndimiduk@apache.org> (cherry picked from commit 6788ff4)
…pache#6146) * Sync code as per irb 1.4.2 * Also provide option to try irb's new functionalities for colorize and autocomplete Signed-off-by: Duo Zhang <zhangduo@apache.org> Signed-off-by: Nick Dimiduk <ndimiduk@apache.org> (cherry picked from commit 6788ff4)
…pache#6146) (#23) * Sync code as per irb 1.4.2 * Also provide option to try irb's new functionalities for colorize and autocomplete Signed-off-by: Duo Zhang <zhangduo@apache.org> Signed-off-by: Nick Dimiduk <ndimiduk@apache.org> (cherry picked from commit 6788ff4) Co-authored-by: Nihal Jain <nihaljain@apache.org>
…pache#6146) * Sync code as per irb 1.4.2 * Also provide option to try irb's new functionalities for colorize and autocomplete Signed-off-by: Duo Zhang <zhangduo@apache.org> Signed-off-by: Nick Dimiduk <ndimiduk@apache.org> (cherry picked from commit 6788ff4)
…pache#6146) (#23) * Sync code as per irb 1.4.2 * Also provide option to try irb's new functionalities for colorize and autocomplete Signed-off-by: Duo Zhang <zhangduo@apache.org> Signed-off-by: Nick Dimiduk <ndimiduk@apache.org> (cherry picked from commit 6788ff4) Co-authored-by: Nihal Jain <nihaljain@apache.org>


No description provided.