Coder Social home page Coder Social logo

Comments (3)

wdroste avatar wdroste commented on July 19, 2024

Forgot to mention both the User and Role classes had mapWith='neo4j'

from grails-data-mapping.

sarmbruster avatar sarmbruster commented on July 19, 2024

I've just checked this, findWhere is working correctly. Could you share the code with a failing "findWhere" ?

from grails-data-mapping.

wdroste avatar wdroste commented on July 19, 2024

So the findWhere was in spring-security plugin, below is the link and
the code.. It maybe due to the way its being accessed.. anyway that's
where I found the issue. It maybe fixed now its been awhile.. I also
saw the test for 'findWhere' so I thought it was fine..

Thanks for looking into this.

https://github.com/grails-plugins/grails-spring-security-core/blob/master/src/groovy/org/codehaus/groovy/grails/plugins/springsecurity/GormUserDetailsService.groovy

    Class<?> User = dc.clazz
    User.withTransaction { status ->
        def user = User.findWhere((conf.userLookup.usernamePropertyName): username)
        if (!user) {
            log.warn "User not found: $username"
            throw new UsernameNotFoundException('User not found', username)
        }

        Collection<GrantedAuthority> authorities = loadAuthorities(user,

username, loadRoles)
createUserDetails user, authorities
}

On Mon, Apr 23, 2012 at 10:49 AM, Stefan Armbruster
[email protected]
wrote:

I've just checked this, findWhere is working correctly. Could you share the code with a failing "findWhere" ?


Reply to this email directly or view it on GitHub:
#33 (comment)

from grails-data-mapping.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.