-
Notifications
You must be signed in to change notification settings - Fork 415
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
Enable usage of recent Spring security modules #7172
Milestone
Comments
Thank you for this @mbarto |
mbarto
added a commit
to mbarto/MapStore2
that referenced
this issue
Aug 2, 2021
…atest spring compatibility
mbarto
added a commit
to mbarto/MapStore2
that referenced
this issue
Aug 5, 2021
…atest spring compatibility
mbarto
added a commit
to mbarto/MapStore2
that referenced
this issue
Sep 2, 2021
…atest spring compatibility
mbarto
added a commit
to mbarto/MapStore2
that referenced
this issue
Sep 2, 2021
…atest spring compatibility
mbarto
added a commit
to mbarto/MapStore2
that referenced
this issue
Sep 2, 2021
…atest spring compatibility
12 tasks
mbarto
added a commit
that referenced
this issue
Sep 7, 2021
offtherailz
added a commit
that referenced
this issue
Sep 7, 2021
offtherailz
added a commit
that referenced
this issue
Sep 8, 2021
12 tasks
mbarto
added a commit
to mbarto/MapStore2
that referenced
this issue
Sep 10, 2021
…atest spring compatibility
mbarto
added a commit
to mbarto/MapStore2
that referenced
this issue
Sep 15, 2021
…atest spring compatibility
tdipisa
pushed a commit
that referenced
this issue
Sep 15, 2021
mbarto
added a commit
to mbarto/MapStore2
that referenced
this issue
Sep 15, 2021
12 tasks
drumbsd
added a commit
that referenced
this issue
Sep 15, 2021
#7172: fixes compatibility issue with java11
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
MapStore backend is based on a set of java frameworks and libraries, whose version is very old (more than 10 years in some cases).
This was inherited from the main backend component, geostore, that is considered a stable project and has not been updated for a while.
Recent attempts to integrate in MapStore support for additional authentication protocols, in particular OAuth2 and OpenID Connect, have shown that the security infrastruture, based on the spring-security framework, version 3.0.5, is incompatible with existing modules that implement the above protocols.
Our options are:
The first option would allow a quicker upgrade, but will probably only delay the need for further upgrades in the future. The second option should make us more future-proof, with the cost of a bigger initiial effort.
We already did a first investigation, and we used geostore as a proof of concept of the migration.
What we had to do is upgrading a bunch of libraries that are interdependent, so that every piece is fully working again. Our acceptance test for "fully working" were:
Currently, the acceptance test is green.
A quick summary of the upgraded libraries:
hibernate-generic-dao is a dead project, but we found the source code and were able to upgrade it to the latest Spring 5 and Hibernate 5 (producing the 1.3.0-SNAPSHOT mentioned above). This needs to be published to a maven repo to build geostore. The source code is available here: https://github.com/mbarto/hibernate-generic-dao/tree/spring5_hibernate5
Results are a proof that a migration to the latest and greatest is possible.
Implementation steps (WIP):
Other useful information
The text was updated successfully, but these errors were encountered: