spring-security icon indicating copy to clipboard operation
spring-security copied to clipboard

SEC-2839: SecurityNamespaceHandler - related to SEC-1455

Open spring-projects-issues opened this issue 10 years ago • 1 comments

Pelit Mamani (Migrated from SEC-2839) said:

After reloading parsers, one needs to call 'get' again. Please see: class: org.springframework.security.config.SecurityNamespaceHandler Method: public BeanDefinition parse(Element element, ParserContext pc) Contains:

        BeanDefinitionParser parser = parsers.get(name);
        if (parser == null) {
            // SEC-1455. Load parsers when required, not just on init().
            loadParsers();
        }
        if (parser == null) {
        .... /// report error message

What's missing is a repeated 'get' after parser were reloaded:

        BeanDefinitionParser parser = parsers.get(name);
        if (parser == null) {
            // SEC-1455. Load parsers when required, not just on init().
            loadParsers();
            BeanDefinitionParser parser = parsers.get(name); // HERE
        }
        if (parser == null) {
        .... /// report error message

Thanks

spring-projects-issues avatar Feb 03 '15 01:02 spring-projects-issues

... and this issue isn't fixed. :(

koosg avatar Aug 18 '22 06:08 koosg