eclipse-sw360 / sw360

SW360 project
https://www.eclipse.org/sw360/
Other
116 stars 96 forks source link

chore(upgrade): Upgrade to java 17, Liferay removed, and authorization enhancement #2501

Open smrutis1 opened 5 days ago

smrutis1 commented 5 days ago

Description

  1. Liferay removed
  2. Java version update to 17
  3. Rest authorization mechanism enhancement to support new Oauth2 flows and removed deprecated flows to support new UI

How to reproduce

Steps:

  1. Update the java version to 17 (Tested in openjdk 17.0.11 2024-04-16)
  2. Download tomcat 10.1.19 Tomcat 10.1.19 or above and configure it.
  3. Build the packages mvn clean package -DskipTests
  4. Copy wars to tomcat webapp folder cp $(find . -name "*.war") /opt/apache-tomcat-10.1.19/webapps/ (TODO: Need to be automated)
  5. Create initial client and user by executing the script scripts/addUnsafeDefaultClient.sh(Will create the default user = admin@sw360.org and password 12345)
  6. start the server
  7. Create token for e.g in rest client like Postman as follows.

Describe the bug and list the steps you used when the issue occurred.

Screenshots ( if applicable )

Add screenshots to help explain your problem.

ag4ums commented 5 days ago

@smrutis1, as discussed this in the community call last week, please split the PR in different commits,

Please fix license headers Please split this commit in logical steps:

  • One to remove Liferay
  • One to the changes configuration to Java 17
  • One to the changes on rest
smrutis1 commented 1 day ago

Thanks for looking into the PR. I am working on the splitting commits as per the comment. Meanwhile it can be tested along with new UI, I have added/updated the steps in description.

heliocastro commented 1 day ago

@smrutis1 I committed the Java 17 changes you requested. I needed to:

The rest need have the tests fixed, but you are changing it on this PR

heliocastro commented 1 day ago

@smrutis1 Don't forget to rebase your branch