feat: updated shiro#664
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the project’s Apache Shiro stack to a newer major version and adapts the Ehcache integration accordingly so Shiro caching continues to work after the upgrade.
Changes:
- Bump Shiro to
2.1.0andobiba-commonsto5.1.0. - Replace
shiro-ehcache3integration with JCache (cache-api+shiro-jcache) dependencies. - Update Shiro-related imports/usages for the new package structure and initialize Shiro caching via JCache/Ehcache.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| pom.xml | Bumps Shiro/obiba-commons versions and adds JCache + Shiro JCache dependency management. |
| agate-core/pom.xml | Swaps module-level Shiro caching dependency from shiro-ehcache3 to cache-api + shiro-jcache. |
| agate-core/src/main/java/org/obiba/agate/security/SecurityManagerFactory.java | Replaces Ehcache-specific Shiro cache manager initialization with JCache-backed initialization. |
| agate-core/src/main/java/org/obiba/agate/service/ConfigurationService.java | Updates Shiro crypto/codec imports and adjusts decrypt byte handling for Shiro 2.x APIs. |
| agate-core/src/main/java/org/obiba/agate/security/AgateUserRealm.java | Updates Shiro SimpleByteSource import to new package. |
| agate-webapp/src/main/java/org/obiba/agate/config/WebConfiguration.java | Import cleanups/reordering (no functional changes in shown excerpt). |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.