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
GPSPRINGSECURITYCORE-78: spring-security-core doesn't work with mongodb grails plugin #314
Comments
bond said: {code:title=/domain/.User.groovy|borderStyle=solid} import org.bson.types.ObjectId class User {
} |
bond said: |
alexander_riss_xing said: {code:title=UserController|borderStyle=solid} /**
*/ UserDetails loadUserByUsername(String username) { UserDetails loadUserByUsername(String username, boolean loadRoles) {
} {code} |
bond said: |
burtbeckwith said: |
Original Reporter: bond
Environment: Ubuntu 11.04, Grails 1.3.7, Mongo DB plugin:1.0.M5, MongoDB:1.8.0
Version: Grails-Spring-Security-Core 1.1.1
Migrated From: http://jira.grails.org/browse/GPSPRINGSECURITYCORE-78
Steps to reproduce:
Create a sample app
uninstall hibernate plugin
install spring-security-core and mongodb plugin
Add a line in the User, Role and UserRole domain classes which is
--> static mapWith = "mongo" <--
That's all issue run-app and goto the login controller and login you'll get the stack trace below
Stacktrace observed:
org.springframework.beans.NotWritablePropertyException: Invalid property 'authorities' of bean class [com.testapp.User]: Bean property 'authorities' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?
The text was updated successfully, but these errors were encountered: