[seam-dev] [Security] How to set custom IdentityStore implementation?
michal.kaplon at poczta.fm
michal.kaplon at poczta.fm
Thu Jan 12 17:02:33 EST 2012
Hello,
Recently we found a bug in JpaIdentityStore class. In line 2114 query
string is build this way:
queryString.append("select distinct ior. " +
modelProperties.get(PROPERTY_RELATIONSHIP_TO).getName() + "from "
which produces unparseable query. Since it is in 3.1.0.Final, waiting
for the next release probably isn't the best solution :)
That's why I need to replace default JpaIdentityStore with my custom
implementation. How can I do that?
I've tried to reconfigure JpaIdentityStoreConfiguration via XML, but
identityStoreClass remains unchanged. Very strange thing, especially
that server log says the bean is reconfigured. Is that because
IdentityStoreConfiguration.identityStoreClass is private field?
IdentityStoreConfiguration itself cannot be configured, because it is
abstract.
Next try was to @Specialize JpaIdentityStoreConfiguration, however it
also failed. This issue smells like @AplicationScoped beans cannot be
specialized, which is also weird.
Any help will be appreciated.
--
Best regards,
Michal
More information about the seam-dev
mailing list