AMBARI-26601 : rebase frontend refactor branch with latest changes from the trunk branch (#4137)

* AMBARI-26613: Ambari Admin React Implementation: complete the ambari admin (#4134)

Co-authered-by: himanshumaurya09876, vanshuhassija, Kowshic-V, shaur97

* AMBARI-26257: Create new Configuration Group now worked #3907

* AMBARI-26147: Add Ruff integration to ambari  (#3908)

* add ruff check files
* add formatted code

* AMBARI-26251: tooltip display issue #3911

* AMBARI-26207: Metrics sortable not work #3912

* AMBARI-26203: Fix annotation processing issue in ConfigurationTest after JDK 17 upgrade (#3859)

* AMBARI-26203: Fix testAllPropertiesHaveMarkdownDescriptions failed

* AMBARI-26212: Fix checkstyle error (#3862)

* Ambari-26211: Fix TaskActionScheduler test failed (#3861)

* AMBARI-26211: Fix TaskActionScheduler test failed

* AMBARI-26215: Fix BlueprintConfigurationProcessorTest and others (#3863)

* AMBARI-26215: Fix BlueprintConfigurationProcessorTest and others

* AMBARI-26222: Fix ClientConfigResourceProviderTest & PreUpgradeCheckResourceProviderTest& ExecutionSchedulerTest& AmbariProxiedUserDetailsServiceTest

* AMBARI-26304 : User authentication fails for previously sync'd LDAP / AD based users

Issue: User authentication fails for previously sync'd LDAP / AD based users.

Cause: the authentication-key was being split before checking if the authentication type required is local or remote based, hence it fails with a NullPointerException.

Changes made: Updated the implementation to add a check for auth type before adding split for authentication-key

* Revert "AMBARI-26304 : User authentication fails for previously sync'd LDAP / AD based users"

This reverts commit 9ea678128c59d1fc3627e106713ede8b39cba326.

* AMBARI-26304 : User authentication fails for previously sync'd LDAP / AD based users (#3938)

Issue: User authentication fails for previously sync'd LDAP / AD based users.

Cause: the authentication-key was being split before checking if the authentication type required is local or remote based, hence it fails with a NullPointerException.

Changes made: Updated the implementation to add a check for auth type before adding split for authentication-key

Co-authored-by: Vishal Suvagia <vishalsuvagia@apache.org>

* AMBARI-26305: Setting up Hive's xms config (#3939)

* AMBARI-26306: Bumpup logback to 1.5.16(latest) due to CVE's (#3940)

* AMBARI-26319: Fix rpm build failed problem (#3952)

* AMBARI-26320: Fix jersey conflict error when ambari server start (#3953)

* AMBARI-26323: Ambari Component Installation Failure After Commons-Col… (#3955)

* AMBARI-26323: Ambari Component Installation Failure After Commons-Collections Upgrade

* AMBARI-26326: Fix Hive installation failures due to missing dependencies and Java version compatibility issues (#3956)

* AMBARI-26328: Fix Zeppelin can't start error (#3957)

* AMBARI-26322: Centralize dependency versions in properties #3954

* AMBARI-26334: Fix execute_db_connection_check failed error (#3958)

* AMBARI-26310: Refactor zoo.cfg.j2 to Align with Python3 Migration (#3944)

* AMBARI-26337: Fix Ambari Metrics java home and JVM options (#3960)

* AMBARI-26338: Fix Rocky Linux 9 RPM Package Compatibility by Removing… (#3961)

* AMBARI-26338: Fix Rocky Linux 9 RPM Package Compatibility by Removing Outdated PowerPC .so file

* AMBARI-26192: Ambari checkbox issue #3959

* AMBARI-26341: Fix Batch restart not worked (#3962)

* AMBARI-26252: Service autostart checkbox display issue #3965

* AMBARI-26426: Hosts failed to delete message is missing (#3972)

* AMBARI-26427: Handling Translation for Ranger TagSync Component (#3973)

* AMBARI-26428: Fix Ambari Server Startup Failure with Jetty SSL and Multiple SAN Entries (#3974)

* Revert "AMBARI-26428: Fix Ambari Server Startup Failure with Jetty SSL and Mu…" (#3976)

This reverts commit 4f2c450b25483b5c176a1e5d3a780b8ab6a63373.

* AMBARI-26288:Preliminary upgrade of Spring and Jetty dependencies (#3930)

(cherry picked from commit 33e36f8f06fd4beb85d6dd72ecfaa84634f27497)

* AMBARI-26292:  Upgrade jetty version to 2.1 (#3932)

(cherry picked from commit 46f82c6faf3367b0cd127aa285a9792fbec661be)

* AMBARI-26293: upgrade guice to 6.0 (#3933)

* AMBARI-26293: upgrade guice to 6.0

(cherry picked from commit e2fdaf8f8d3f4cd29ffd1a90db70e94ec0576dbb)

* AMBARI-26294: upgrade JPA (#3935)

(cherry picked from commit 837640d6c3760d77ab425ca426fc9d55d8bcb0d4)

* AMBARI-26296: Fix security related issues after spring upgrade (#3951)

* fix

* AMBARI-26296: fix security related issues after spring upgrade

(cherry picked from commit bbebe40af2366a4ee4a26979271185d4c2cb7244)

* AMBARI-26185: Upgrade commons-collections to resolve CVEs (#3936)

* AMBARI-26357: Errors occur when compiling ambari after upgrading jetty (#3964)

* Errors occur when compiling ambari after upgrading jetty
* Remove some duplicate content

(cherry picked from commit f91792606d48a74cc6cce9dbf2bcd904e7fdbc21)

* AMBARI-26440. trunk does not compile (#3978)

* AMBARI-26443. Failed to execute goal frontend-maven-plugin on MAC M1 (#3979)

* AMBARI-26444: Build is broken: infra_solr.py:172:1: SyntaxError: Unexpected indentation (#3980)

Co-authored-by: yungh <yungh@nvidia.com>

* AMBARI-26454: Two source code files don't have Apache license text #3982

* AMBARI-26461: NotAMock Argument should be a mock, but is: class java.lang.Class. (#3984)

* AMBARI-26462: Alluxio-site-properties.xml does not pass validation (#3985)

* AMBARI-26438: Ambari capacity view add failed (#3983)

* [AMBARI-26456]Dependency org.mockito:mockito-inline version is not unique (#3987)

* AMBARI-26453: change to 3.1.0.0-SNAPSHOT (#3986)

* AMBARI-26449:Update org.postgresql:postgresql to 42.3.9 #3994

* AMBARI-26458: Maven -DskipSurefireTests does not skip Java tests (#3997)

Co-authored-by: yungh <yungh@nvidia.com>

* AMBARI-26474: Fix ambari server py test (#3995)

* AMBARI-26460: module java.base does not "opens sun.nio.fs" to unnamed module (#3996)

Co-authored-by: yungh <yungh@nvidia.com>

* AMBARI-25598. Fix parameter error in the toString() of the ServiceComponentRequest file.(743294668)(THOMAS TAO) (#3270)

Co-authored-by: taoyuxin <taoyuxin@inspur.com>

* AMBARI-26448: Update org.springframework:* to 6.0.23 (#3993)

* Bump org.apache.derby:derby in /ambari-project (#3990)

Bumps org.apache.derby:derby from 10.12.1.1 to 10.17.1.0.

---
updated-dependencies:
- dependency-name: org.apache.derby:derby
  dependency-version: 10.17.1.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* AMBARI-26470: Bump org.codehaus.groovy:groovy-all in /ambari-project (#3991)

Bumps [org.codehaus.groovy:groovy-all](https://github.com/apache/groovy) from 2.1.8 to 2.4.21.
- [Commits](https://github.com/apache/groovy/commits)

---
updated-dependencies:
- dependency-name: org.codehaus.groovy:groovy-all
  dependency-version: 2.4.21
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* AMBARI-25814: Bump commons-io:commons-io from 2.8.0 to 2.14.0 in /ambari-agent (#3992)

Bumps commons-io:commons-io from 2.8.0 to 2.14.0.

---
updated-dependencies:
- dependency-name: commons-io:commons-io
  dependency-version: 2.14.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* AMBARI-26463: AmbariHandlerListTest.testRemoveViewInstance NPE (#3988)

* AMBARI-26476:Precommit failed due to checkstyle error (#4003)

* AMBARI-26461 addendum (#4006)

* AMBARI-26474: Fix ambari server py test (#4007)

* AMBARI-26475:Two Ambari WebUI Tests failures (#4002)

* AMBARI-26466: WidgetResourceProviderTest.testUpdateResources fails due to Jakarta Persistence API update (#4010)

Co-authored-by: yungh <yungh@nvidia.com>

* AMBARI-26471:Python test failures: X509_V_FLAG_NOTIFY_POLICY unsupported #4009

* AMBARI-26489 Remove odpi-ambari-mpack #4005

* AMBARI-26494: Ambari server failed to start due to database check failure (#4011)

* AMBARI-26479: Bump org.apache.commons:commons-compress from 1.21 to 1.26.0 in /ambari-agent (#4008)

* AMBARI-26495: Ambari server startup failure caused by incorrect spring-beans dependency version (#4014)

* AMBARI-26508: Multiple versions of ehcache.jar found in java class path (#4017)

* AMBARI-26516 : Ambari Agent hung when ambari server sends agent restart action (#4024)

Co-authored-by: vijgovin <vijayakumar.govindasamy@oracle.com>

* AMBARI-26316: Add metrics for Agent Stomp and Api Stomp performance (#3949)

* AMBARI-25839: Reset user after RA HA wizard close (#3628)

Co-authored-by: vijgovin <vijayakumar.govindasamy@oracle.com>

* Ambari-26513: Added Scrolling Functionality in Sidebar Navigation Using Flex

* AMBARI-26519: Additional check for public and local during 1st time initialization (#4028)

* AMBARI-26517 : Avoid printing password during DB connection check (#4025)

Co-authored-by: vijgovin <vijayakumar.govindasamy@oracle.com>

* AMBARI-26520 : Fix deprecated usage string.uppercase (#4029)

* AMBARI-26295: ambari-server start error: Caused by: java.lang.AbstractMethodError (#3943)

* AMBARI-26295: ambari-server start error: Caused by: java.lang.AbstractMethodError

* Remove redundant hadoop.version

* Remove duplicate dependency

---------

Co-authored-by: Wei-Chiu Chuang <weichiu@apache.org>

* AMBARI-26522 : Fix imports for collections (#4033)

Co-authored-by: harshith gandhe <harshith@acceldata.io>

* AMBARI-26523: Add missing logback.xml #4035

* AMBARI-26524: Fix inspect deprecations for Python 3.11 compatibility (#4034)

* AMBARI-26528: Add build.os_arch params to support aarch64 #4040

* AMBARI-26535: Fix apache rat-plugin check errors and web test failed (#4044)

* AMBARI-26523: fix apache rat-plugin check errors

* fix test/karma caused after AMBARI-26519

* AMBARI-26531: Restore java_exec in infra_solr.py (#4042)

* AMBARI-26530: Allow Jetty to serve symlinked resource files (#4041)

* AMBARI-26538: Fix KeyError by initializing stack_version before use (#4046)

* AMBARI-26529 Fix Kerberos admin session ajax failure (#4039)

* AMBARI-26529 Fix Kerberos admin session ajax failure and avoid unnecessary KERBEROS service deletion

* AMBARI-26529 Added test case and removed Kerberos service check

* Fixed spaces

* AMBARI-26545: Fix rolling restart: use Response.readEntity(String) in ExecutionScheduleManager #4050

Signed-off-by: SANRAJ RAJENDRA BANDRE <sanraj.programming@gmail.com>

* AMBARI-26537: Security: Remove command file json after execution of a task (#4045)

Co-authored-by: vijgovin <vijayakumar.govindasamy@oracle.com>

* AMBARI-26000: Change admin_password to use str instead of unicode (#4080)

* AMBARI-26552: Upgrade service version to Bigtop 3.4.0 (#4078)

Co-authored-by: abjfh <3022044014@qq.com>

* AMBARI-26496 Multiple HTTP GET methods incorrectly consume entity, causing warning logs (#4015)

* AMBARI-26533: Ranger Admin Restart Deletes JDBC JAR When Installed on Same Host as Ambari Server (#4043)

* AMBARI-26555: Password leaked for configurations at stack root (e.g. cluster-env.xml) (#4086)

* AMBARI-26311: postgresql-server should be installed even though ambari-server is configured with mysql (#3945)

* AMBARI-26559: compilation not working on trunk branch (#4089)

* AMBARI-26560: Unable to execute alert because of mistakenly ambari-agent cache_dir (#4090)

* AMBARI-26562: Fix UT failure in Kerberos Step2 Controller (#4092)

* AMBARI-26561: add support for $.browser (#4091)

* AMBARI-26561: add support for $.browser

* AMBARI-26561: add unit test

* AMBARI-26563: Replace deprecated logger.warn() with logger.warning() (#4095)

* AMBARI-26568: Fixing IllegalArgumentException: argument src is null during schema upgrade (#4100)

* AMBARI-26599: Update the ambari-3.0.0 docs (#4131)

* AMBARI-26303: Rebase trunk branch onto frontend-refactor (#3937)

* AMBARI-26232 There will be failure when executing shell.py and wrong order of imports for WidgetResourceProvider.java (#3872)

* There will be failure when executing shell.py
* Wrong order of imports for WidgetResourceProvider.java
* Fix issue of test failure

* AMBARI-26234: ClusterNotFoundException in stage Confirm Hosts during deploying a cluster #3875

* AMBARI-26184: Resolve snakeyaml 1.12 CVE #3869

* AMBARI-26235: Unable to check firewalld status when setup ambari #3878

* AMBARI-26195: Ambari database page not wokring after JQ upgrade #3885

* AMBARI-26239: Fix OozieUtils (#3894)

* AMBARI-26239: Fix OozieUtils

* AMBARI-26205: Dropdown menu flex layout overflow #3895

* AMBARI-26236: The database password character type requirement is too few (#3883)

* The database password character type requirement is too few
* Add more special characters, and add UT for this case
* Update test case

* AMBARI-26240: Fix alter dispatcher (#3896)

* AMBARI-26241: _threadlocal has no uid because it is always None #3898

* AMBARI-26243: refactor: convert .format() to f-strings #3899

* AMBARI-26244: convert .format() to f-strings for ambari-server #3901

* AMBARI-26245: refactor(ambari-agent): convert .format() to f-strings (#3902)

* AMBARI-26249: Timeline Service v2 failed to start because of unable to create leveldb state store directory #3905

* AMBARI-26247: convert .format() to f-strings for ambari-contrib #3903

* Update the KEYS File

* AMBARI-26253: Can't download all client configs (#3906)

* AMBARI-26257: Create new Configuration Group now worked #3907

* AMBARI-26248: Timeline Service Reader failed to start if hbase is not installed #3904

* AMBARI-26147: Add Ruff integration to ambari  (#3908)

* add ruff check files
* add formatted code

* AMBARI-26251: tooltip display issue #3911

* AMBARI-26207: Metrics sortable not work #3912

* AMBARI-26255: fix can't add capacity-scheduler views (#3913)

* AMBARI-26270: Add quicklink of hiveserver2 web ui #3918

* AMBARI-26142: JDK17 support for Ambari Co-authored-by: Mohammad Arshad <arshad@apache.org> (#3851)

* AMBARI-26204: Migrate RecommendationResourceProviderTest from EasyMoc… (#3860)

* AMBARI-26204: Migrate RecommendationResourceProviderTest from EasyMock to Mockito

* AMBARI-26203: Fix annotation processing issue in ConfigurationTest after JDK 17 upgrade (#3859)

* AMBARI-26203: Fix testAllPropertiesHaveMarkdownDescriptions failed

* AMBARI-26212: Fix checkstyle error (#3862)

* Ambari-26211: Fix TaskActionScheduler test failed (#3861)

* AMBARI-26211: Fix TaskActionScheduler test failed

* AMBARI-26215: Fix BlueprintConfigurationProcessorTest and others (#3863)

* AMBARI-26215: Fix BlueprintConfigurationProcessorTest and others

* AMBARI-26220: Fix ConfigureClusterTaskTest Unexpected method calls: ClusterConfigurationRequest.getRequiredHostGroups() error (#3864)

fix AsyncCallableServiceTest Unexpected method calls: Callable.call() error

* AMBARI-26221: Fix StackAdvisorCommandTest error,remove unnecessary code. (#3865)

* AMBARI-26222: Fix ClientConfigResourceProviderTest & PreUpgradeCheckResourceProviderTest& ExecutionSchedulerTest& AmbariProxiedUserDetailsServiceTest

* AMBARI-26233: Fix ambari-env.sh after jdk upgrade (#3873)

* fix ambari agent env after jdk upgrade

* AMBARI-26238: Add Ambari Java Home configuration for JDK 17 in Ambari… (#3891)

* AMBARI-26238: Add Ambari Java Home configuration for JDK 17 in Ambari server

* AMBARI-26268: Remove default value for ambari-java-home in ambari-server.py to fix setup handling #3915

Co-authored-by: tongxiaojun <tongxiaojun@gmail.com>

* AMBARI-26269: Fix regex pattern flag position in ambari_jinja2 filters #3917

* AMBARI-26269: Fix regex pattern flag position in ambari_jinja2 filters
---------

Co-authored-by: tongxiaojun <tongxiaojun@gmail.com>

* AMBARI-26249: Addendum, adjusting the location of creating directory code (#3920)

* AMBARI-26271: Invalid parameter was provided when using shell.call in HostInfo.py #3919

* AMBARI-26273: Add Oceanbase Support to Ambari MySQL DDL #3921

Co-authored-by: tongxiaojun <tongxiaojun@gmail.com>

* AMBARI-26275: NoClassesFoundToAnalyzeException when compiling ambari with jdk17 #3924

* AMBARI-25848 : Need to update org.codehaus.jackson:jackson-mapper-asl dependency (#3922)

Issue: Need to update org.codehaus.jackson:jackson-mapper-asl dependency.

Cause: the library has been moved to com.fasterxml.jackson.core » jackson-databind,
hence to keep up with the newer versions need to update the library dependency.

Changes made: to update the jackson-mapper-asl dependency to jackson-databind and the required library version upgrades

Co-authored-by: Vishal Suvagia <vishalsuvagia@apache.org>

* AMBARI-26276: fix hdfs web service check (#3925)

* AMBARI-26277:fix kerberos encryption error (#3926)

* AMBARI-26279: ambari-agent prints logs that netstat command not found #3928

* AMBARI-26286: refactor(ambari-ruff): convert .format() to f-strings #3927

AMBARI-26286: refactor(ambari-ruff): convert .format() to f-strings

* AMBARI-26055: Add alluxio support (#3934)

* add alluxio service

Co-authored-by: jialiang <jialiangcaimd@gmail.com>

* fix license

---------

Co-authored-by: jialiang <jialiangcaimd@gmail.com>

* AMBARI-26185: Upgrade commons-collections to resolve CVEs (#3936)

---------

Co-authored-by: Peng Lu <lupeng_nwpu@qq.com>
Co-authored-by: Sandeep  Kumar <skumar34@visa.com>
Co-authored-by: zrain <zrainfun@gmail.com>
Co-authored-by: coldless177 <baishangxia707@gmail.com>
Co-authored-by: jialiang <jialiangcaimd@gmail.com>
Co-authored-by: yaruyng <59247435+yaruyng@users.noreply.github.com>
Co-authored-by: tongxiaojun <tongxiaojun@redoop.com>
Co-authored-by: tongxiaojun <tongxiaojun@gmail.com>
Co-authored-by: Vishal Suvagia <vishalsuvagia@users.noreply.github.com>
Co-authored-by: Vishal Suvagia <vishalsuvagia@apache.org>

* AMBARI-26315: Ambari Web Switchable experience (#3967)

Merging the patch based on discussion and reviews

---------

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: SANRAJ RAJENDRA BANDRE <sanraj.programming@gmail.com>
Co-authored-by: Sandeep  Kumar <skumar34@visa.com>
Co-authored-by: zrain <zrainfun@gmail.com>
Co-authored-by: jialiang <jialiangcaimd@gmail.com>
Co-authored-by: coldless177 <baishangxia707@gmail.com>
Co-authored-by: Vishal Suvagia <vishalsuvagia@apache.org>
Co-authored-by: Vishal Suvagia <vishalsuvagia@users.noreply.github.com>
Co-authored-by: Basapuram Kumar <bsprmkumar@gmail.com>
Co-authored-by: yaruyng <59247435+yaruyng@users.noreply.github.com>
Co-authored-by: Himanshu Maurya <54660538+himanshumaurya09876@users.noreply.github.com>
Co-authored-by: Mohammad Arshad <arshad@apache.org>
Co-authored-by: tongxiaojun <tongxiaojun@redoop.com>
Co-authored-by: Peng Lu <lupeng_nwpu@qq.com>
Co-authored-by: Peter Lee <peterxcli@gmail.com>
Co-authored-by: Jhen-Yung Hsu <yungyung7654321@gmail.com>
Co-authored-by: yungh <yungh@nvidia.com>
Co-authored-by: rich7420 <101171023+rich7420@users.noreply.github.com>
Co-authored-by: Wei-Chiu Chuang <weichiu@apache.org>
Co-authored-by: ChenChen Lai <72776271+0lai0@users.noreply.github.com>
Co-authored-by: 743294668 <41327198+743294668@users.noreply.github.com>
Co-authored-by: taoyuxin <taoyuxin@inspur.com>
Co-authored-by: TengYao Chi <kitingiao@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Vijayakumar Govindasamy <gvijay.452@gmail.com>
Co-authored-by: vijgovin <vijayakumar.govindasamy@oracle.com>
Co-authored-by: Manish M Pillai <manishpillai64@gmail.com>
Co-authored-by: kravii <109473433+kravii@users.noreply.github.com>
Co-authored-by: HARSHITH GANDHE <86101160+harshith-21@users.noreply.github.com>
Co-authored-by: harshith gandhe <harshith@acceldata.io>
Co-authored-by: hidataplus <112787946+hidataplus@users.noreply.github.com>
Co-authored-by: Prabhjyot Singh <prabhjyot@acceldata.io>
Co-authored-by: Dahyun (Dany) <88699158+Ko-dany@users.noreply.github.com>
Co-authored-by: Shubham Sharma <shubh.luck@yahoo.in>
Co-authored-by: SANRAJ RAJENDRA BANDRE <37772044+sanrajbandre@users.noreply.github.com>
Co-authored-by: Halim Kim <halim.kim@navercorp.com>
Co-authored-by: abjfh30 <abjfh@aliyun.com>
Co-authored-by: abjfh <3022044014@qq.com>
Co-authored-by: Yubi Lee <eubnara@gmail.com>
Co-authored-by: Sandeep  Kumar <sandeep318kumar@gmail.com>
Co-authored-by: Peng Lu <lupeng@apache.org>
Co-authored-by: Prabhjyot Singh <prabhjyotsingh@gmail.com>
Co-authored-by: Nikita Pande <37657012+nikita15p@users.noreply.github.com>
Co-authored-by: tongxiaojun <tongxiaojun@gmail.com>
Co-authored-by: vanshuhassija <33016642+vanshuhassija@users.noreply.github.com>
949 files changed