Skip to content

HBASE-28832 Upgrade from bootstrap 3.4.1 to non vulnerable version 5.3.3 #6524

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

Merged

Conversation

PDavid
Copy link
Contributor

@PDavid PDavid commented Dec 9, 2024

This is the backport of #6490 for branch-2.

@Apache-HBase

This comment has been minimized.

@Apache-HBase

This comment has been minimized.

@PDavid PDavid marked this pull request as ready for review December 10, 2024 09:19
@Apache-HBase

This comment has been minimized.

@Apache-HBase

This comment has been minimized.

@Apache-HBase

This comment has been minimized.

@Apache-HBase

This comment has been minimized.

@Apache-HBase

This comment has been minimized.

@Apache-HBase

This comment has been minimized.

@Apache-HBase

This comment has been minimized.

@PDavid PDavid marked this pull request as draft December 19, 2024 10:18
@NihalJain
Copy link
Contributor

Hi @PDavid this needs rebase since now dependent PR #6551 is merged!

Copy link
Contributor

@NihalJain NihalJain left a comment

Choose a reason for hiding this comment

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

Please rebase!

@PDavid
Copy link
Contributor Author

PDavid commented Jan 6, 2025

Hi @NihalJain,

Sorry I was completely off for the holiday season. I'll rebase this branch soon.

@PDavid PDavid force-pushed the HBASE-28832-bootstrap-upgrade-5-branch-2 branch from 1c6f572 to b3ce128 Compare January 6, 2025 14:44
@PDavid
Copy link
Contributor Author

PDavid commented Jan 6, 2025

OK, this branch is rebased. I cherry-picked again the whole Bootstrap upgrade master commit. Unfortunately this is still not a 100% clean cherry-pick. I had to resolve some minor conflicts in MasterStatusTmpl.jamon and table.jsp but this is very-very close to the original master patch: #6490

Also added the small fix for TestInfoServersACL.

@NihalJain
Copy link
Contributor

Hi @NihalJain,

Sorry I was completely off for the holiday season. I'll rebase this branch soon.

Hey @PDavid No worries, BTW a very Happy New Year. I actually added comment just for reminder, once you are back.

@PDavid
Copy link
Contributor Author

PDavid commented Jan 7, 2025

The CI build was aborted after 21 hours. Will rebase this branch to trigger another build.

@PDavid PDavid force-pushed the HBASE-28832-bootstrap-upgrade-5-branch-2 branch from b3ce128 to a445f7c Compare January 7, 2025 16:24
@Apache-HBase

This comment has been minimized.

@PDavid PDavid marked this pull request as ready for review January 9, 2025 08:51
@PDavid
Copy link
Contributor Author

PDavid commented Jan 9, 2025

I tested with very quickly locally and it looks good to me.

The PR build was aborted. Should it be re-triggered maybe? 🤔

@PDavid PDavid requested a review from NihalJain January 9, 2025 08:53
@NihalJain
Copy link
Contributor

NihalJain commented Jan 9, 2025

This is a simple backport of master + addendum right? I don't think approval is needed here. We can merge this once we have build results. Let me retrigger, if not already running!

@NihalJain NihalJain added the backport This PR is a back port of some issue or issues already committed to master label Jan 9, 2025
@PDavid
Copy link
Contributor Author

PDavid commented Jan 9, 2025

This is a simple backport of master + addendum right? I don't think approval is needed here. We can merge this once we have build results. Let me retrigger, if not already running!

Yes, exactly. Thanks! 👍

@PDavid PDavid force-pushed the HBASE-28832-bootstrap-upgrade-5-branch-2 branch from a445f7c to 4ffff57 Compare January 10, 2025 07:05
@Apache-HBase

This comment has been minimized.

…3.3 (apache#6490)

First we upgraded to Bootstrap v4 - this was the majority of the changes - and then I upgraded to Bootstrap 5.3.3 - which is the latest non-vulnerable version according to https://security.snyk.io/package/npm/bootstrap/3.4.1

Changes were based on the migration documentation:
- https://getbootstrap.com/docs/4.6/migration/
- https://getbootstrap.com/docs/5.3/migration/

Most of the changes are related to navbar-s, tabs and forms.

The new Bootstrap look has a bit bigger font sizes but it is still OK in my opinion.

Bootstrap v5 is not requiring JQuery anymore but we have some JQuery plugins (jquery.tablesorter.min.js, tab.js) which still need it so I left JQuery in.

- Removed bootstrap-theme.min.css and Glyphicons icon font because these are not present anymore in newer Bootstrap versions.
- Upgraded checked in Bootstrap CSS and JS files to v4.
- Moved some inline CSS styles to hbase.css file (DRY).
- The page-header class was dropped in Bootstrap v4 so added page-header small grey color to hbase.css.
- Removed some unused imports in JSP files.
- Improved the styling of the Log Level form
- Replaced hbase_logo_small.png under thrift module with the hbase-server one. Reason: to make sure that they are the same size (this under thrift was smaller).
- Upgraded checked in Bootstrap CSS and JS files to v5.
- Migrated navbars for v5:
  - Navbars now require a container within (to drastically simplify spacing requirements and CSS required).
  - The .active class can no longer be applied to .nav-items, it must be applied directly on .nav-links.
- Migrated data attributes. Data attributes for all Bootstrap JavaScript plugins are now namespaced to help distinguish Bootstrap functionality from third parties and your own code. For example, we use data-bs-toggle instead of data-toggle.
- form-inline was dropped in v5, so inline forms had to be styled with grid and utilities instead.
- Added the favicon of the HBase website to the web UI pages.

Signed-off-by: Nick Dimiduk <ndimiduk@apache.org>
Signed-off-by: Nihal Jain <nihaljain.cs@gmail.com>
(cherry picked from commit 744ce13)
There were some changes in the Bootstrap upgrade which caused the test to fail because the test expected certain text to appear on the UI page.

(cherry picked from commit eba6a85)
@PDavid PDavid force-pushed the HBASE-28832-bootstrap-upgrade-5-branch-2 branch from 4ffff57 to 71e1d36 Compare February 25, 2025 08:40
@Apache-HBase
Copy link

🎊 +1 overall

Vote Subsystem Runtime Logfile Comment
+0 🆗 reexec 1m 11s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 1s No case conflicting files found.
+0 🆗 codespell 0m 0s codespell was not available.
+0 🆗 detsecrets 0m 0s detect-secrets was not available.
+0 🆗 jshint 0m 0s jshint was not available.
+0 🆗 shelldocs 0m 0s Shelldocs was not available.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
+1 💚 hbaseanti 0m 0s Patch does not have any anti-patterns.
_ branch-2 Compile Tests _
+0 🆗 mvndep 0m 11s Maven dependency ordering for branch
+1 💚 mvninstall 4m 31s branch-2 passed
+1 💚 compile 8m 1s branch-2 passed
+1 💚 checkstyle 1m 22s branch-2 passed
+1 💚 spotbugs 14m 34s branch-2 passed
+1 💚 spotless 1m 1s branch has no errors when running spotless:check.
_ Patch Compile Tests _
+0 🆗 mvndep 0m 17s Maven dependency ordering for patch
+1 💚 mvninstall 3m 30s the patch passed
+1 💚 compile 8m 30s the patch passed
+1 💚 javac 8m 30s the patch passed
+1 💚 blanks 0m 0s The patch has no blanks issues.
+1 💚 checkstyle 1m 13s the patch passed
+1 💚 shellcheck 0m 0s No new issues.
+1 💚 spotbugs 15m 49s the patch passed
+1 💚 hadoopcheck 24m 8s Patch does not cause any errors with Hadoop 2.10.2 or 3.3.6 3.4.0.
+1 💚 spotless 1m 8s patch has no errors when running spotless:check.
_ Other Tests _
+1 💚 asflicense 1m 14s The patch does not generate ASF License warnings.
90m 22s
Subsystem Report/Notes
Docker ClientAPI=1.43 ServerAPI=1.43 base: https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-6524/8/artifact/yetus-general-check/output/Dockerfile
GITHUB PR #6524
Optional Tests dupname asflicense javac spotbugs checkstyle codespell detsecrets compile hadoopcheck hbaseanti spotless jshint shellcheck shelldocs
uname Linux 0884ad8f3c9e 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev-support/hbase-personality.sh
git revision branch-2 / 71e1d36
Default Java Eclipse Adoptium-11.0.23+9
Max. process+thread count 178 (vs. ulimit of 30000)
modules C: hbase-resource-bundle hbase-http hbase-server hbase-thrift hbase-rest . U: .
Console output https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-6524/8/console
versions git=2.34.1 maven=3.9.8 spotbugs=4.7.3 shellcheck=0.8.0
Powered by Apache Yetus 0.15.0 https://yetus.apache.org

This message was automatically generated.

@Apache-HBase
Copy link

💔 -1 overall

Vote Subsystem Runtime Logfile Comment
+0 🆗 reexec 0m 45s Docker mode activated.
-0 ⚠️ yetus 0m 4s Unprocessed flag(s): --brief-report-file --spotbugs-strict-precheck --author-ignore-list --blanks-eol-ignore-file --blanks-tabs-ignore-file --quick-hadoopcheck
_ Prechecks _
_ branch-2 Compile Tests _
+0 🆗 mvndep 0m 10s Maven dependency ordering for branch
+1 💚 mvninstall 3m 15s branch-2 passed
+1 💚 compile 2m 11s branch-2 passed
+1 💚 javadoc 3m 15s branch-2 passed
+1 💚 shadedjars 6m 13s branch has no errors when building our shaded downstream artifacts.
_ Patch Compile Tests _
+0 🆗 mvndep 0m 12s Maven dependency ordering for patch
+1 💚 mvninstall 3m 1s the patch passed
+1 💚 compile 2m 11s the patch passed
+1 💚 javac 2m 11s the patch passed
+1 💚 javadoc 3m 7s the patch passed
+1 💚 shadedjars 6m 24s patch has no errors when building our shaded downstream artifacts.
_ Other Tests _
-1 ❌ unit 266m 10s /patch-unit-root.txt root in the patch failed.
303m 7s
Subsystem Report/Notes
Docker ClientAPI=1.43 ServerAPI=1.43 base: https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-6524/8/artifact/yetus-jdk17-hadoop3-check/output/Dockerfile
GITHUB PR #6524
Optional Tests javac javadoc unit compile shadedjars
uname Linux 42da40ca0499 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev-support/hbase-personality.sh
git revision branch-2 / 71e1d36
Default Java Eclipse Adoptium-17.0.11+9
Test Results https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-6524/8/testReport/
Max. process+thread count 4931 (vs. ulimit of 30000)
modules C: hbase-resource-bundle hbase-http hbase-server hbase-thrift hbase-rest . U: .
Console output https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-6524/8/console
versions git=2.34.1 maven=3.9.8
Powered by Apache Yetus 0.15.0 https://yetus.apache.org

This message was automatically generated.

@Apache-HBase
Copy link

💔 -1 overall

Vote Subsystem Runtime Logfile Comment
+0 🆗 reexec 0m 46s Docker mode activated.
-0 ⚠️ yetus 0m 4s Unprocessed flag(s): --brief-report-file --spotbugs-strict-precheck --author-ignore-list --blanks-eol-ignore-file --blanks-tabs-ignore-file --quick-hadoopcheck
_ Prechecks _
_ branch-2 Compile Tests _
+0 🆗 mvndep 0m 10s Maven dependency ordering for branch
+1 💚 mvninstall 3m 14s branch-2 passed
+1 💚 compile 2m 5s branch-2 passed
+1 💚 javadoc 3m 7s branch-2 passed
+1 💚 shadedjars 6m 22s branch has no errors when building our shaded downstream artifacts.
_ Patch Compile Tests _
+0 🆗 mvndep 0m 13s Maven dependency ordering for patch
+1 💚 mvninstall 3m 1s the patch passed
+1 💚 compile 2m 7s the patch passed
+1 💚 javac 2m 7s the patch passed
+1 💚 javadoc 2m 57s the patch passed
+1 💚 shadedjars 6m 20s patch has no errors when building our shaded downstream artifacts.
_ Other Tests _
-1 ❌ unit 269m 51s /patch-unit-root.txt root in the patch failed.
307m 11s
Subsystem Report/Notes
Docker ClientAPI=1.43 ServerAPI=1.43 base: https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-6524/8/artifact/yetus-jdk11-hadoop3-check/output/Dockerfile
GITHUB PR #6524
Optional Tests javac javadoc unit compile shadedjars
uname Linux 53a8a3dc3017 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev-support/hbase-personality.sh
git revision branch-2 / 71e1d36
Default Java Eclipse Adoptium-11.0.23+9
Test Results https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-6524/8/testReport/
Max. process+thread count 8279 (vs. ulimit of 30000)
modules C: hbase-resource-bundle hbase-http hbase-server hbase-thrift hbase-rest . U: .
Console output https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-6524/8/console
versions git=2.34.1 maven=3.9.8
Powered by Apache Yetus 0.15.0 https://yetus.apache.org

This message was automatically generated.

@Apache-HBase
Copy link

🎊 +1 overall

Vote Subsystem Runtime Logfile Comment
+0 🆗 reexec 1m 8s Docker mode activated.
-0 ⚠️ yetus 0m 5s Unprocessed flag(s): --brief-report-file --spotbugs-strict-precheck --author-ignore-list --blanks-eol-ignore-file --blanks-tabs-ignore-file --quick-hadoopcheck
_ Prechecks _
_ branch-2 Compile Tests _
+0 🆗 mvndep 0m 12s Maven dependency ordering for branch
+1 💚 mvninstall 3m 50s branch-2 passed
+1 💚 compile 2m 33s branch-2 passed
+1 💚 javadoc 3m 42s branch-2 passed
+1 💚 shadedjars 7m 20s branch has no errors when building our shaded downstream artifacts.
_ Patch Compile Tests _
+0 🆗 mvndep 0m 12s Maven dependency ordering for patch
+1 💚 mvninstall 3m 56s the patch passed
+1 💚 compile 2m 43s the patch passed
+1 💚 javac 2m 43s the patch passed
+1 💚 javadoc 4m 1s the patch passed
+1 💚 shadedjars 6m 36s patch has no errors when building our shaded downstream artifacts.
_ Other Tests _
+1 💚 unit 411m 3s root in the patch passed.
454m 44s
Subsystem Report/Notes
Docker ClientAPI=1.43 ServerAPI=1.43 base: https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-6524/8/artifact/yetus-jdk8-hadoop2-check/output/Dockerfile
GITHUB PR #6524
Optional Tests javac javadoc unit compile shadedjars
uname Linux 4535ee8dc708 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev-support/hbase-personality.sh
git revision branch-2 / 71e1d36
Default Java Temurin-1.8.0_412-b08
Test Results https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-6524/8/testReport/
Max. process+thread count 8116 (vs. ulimit of 30000)
modules C: hbase-resource-bundle hbase-http hbase-server hbase-thrift hbase-rest . U: .
Console output https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-6524/8/console
versions git=2.34.1 maven=3.9.8
Powered by Apache Yetus 0.15.0 https://yetus.apache.org

This message was automatically generated.

@PDavid
Copy link
Contributor Author

PDavid commented Feb 26, 2025

Hi @NihalJain,
Do you think we can merge this?

Copy link
Contributor

@petersomogyi petersomogyi left a comment

Choose a reason for hiding this comment

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

Approving this backport. The test failures appear to be unrelated to this change.

@petersomogyi petersomogyi merged commit 99bc299 into apache:branch-2 Feb 28, 2025
1 check failed
@PDavid PDavid deleted the HBASE-28832-bootstrap-upgrade-5-branch-2 branch February 28, 2025 13:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport This PR is a back port of some issue or issues already committed to master
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants