-
Notifications
You must be signed in to change notification settings - Fork 6.1k
ConversionService should be configurable for BasicLookupStrategy and JdbcAclService #4814
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
Comments
…ionService instead of AclClassIdUtils Fixes spring-projectsgh-4814
Any movement on this? I'd also mention that #4424 is not truly solved in my opinion. On Postgres, using a UUID causes an error because the queries to check for existing IDs attempt to cast between a proper UUID type in Postgres and the varchar column definition in the included schemas. If schemas are going to be included with the library, they should work out of the box, is my expectation. If not, then make it clear I need to write a |
Hi, i still have the issue to inject a My problem:
My questions:
References
|
…ionService instead of AclClassIdUtils Fixes gh-4814
@nenaraab Thanks for the bump. The PR is now merged into master. Can you give it a try? You will be able to find the SNAPSHOT in about 30 minutes in the https://repo.spring.io/libs-snapshot Maven repository |
@rwinch Minor suggestion: |
@nenaraab Thanks for the suggestion. Would you be interested in submitting a PR that includes a test? |
Any idea which version of Spring security this would be available in? I have seen that it is available in 5.2.0M1 and the GA is scheduled to be in July. It would be great if this is available in 5.1.5. This would mean that I can update spring boot to 2.1.4 and get this fix in a week or so. |
@SayakMukhopadhyay, we try and follow semantic versioning principles, which means no new public APIs in a patch release. Since this PR exposes new public methods (e.g. |
That's a bummer. In the meantime I have worked around the issue using reflection. For anyone looking for help here is the relevant code snippet:
|
Thanks for reaching out with a workaround, @SayakMukhopadhyay, and sorry if you are experiencing some heartburn over it. The community as a whole gets a lot of benefit from knowing that patch releases are always backward-compatible, which is why we adhere to it. |
this is still an issue in 5.1.6.RELEASE |
Even in the 5.2.0.RELEASE this is still an issue |
Uh oh!
There was an error while loading. Please reload this page.
Summary
In #4424 I added
AclClassIdUtils
to handle some common logic for dealing with acl classes with types other than Long. I thought this class would be internal, then decided it was better to have it explicitly defined.The class has package level visibility, but should be public.
Actual Behavior
Unable to define a bean of type AclClassIdUtils using Java Config as the class is not public.
Expected Behavior
Should be able to define a bean of type AclClassIdUtils using Java Config.
Configuration
UPDATE: This ticket's proposal changed during the time it was being implemented. Instead of exposing
AclClassIdUtils
as public, it was resolved to makeBasicLookupStrategy
andJdbcAclService
exposesetConversionService
which they'd ultimately provide toAclClassIdUtils
.For example in
BasicLookupStrategy
doing:In this way, #4424 is addressed while still keeping
AclClassIdUtils
package-private.The text was updated successfully, but these errors were encountered: