Skip to content
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

SEC-2839: SecurityNamespaceHandler - related to SEC-1455 #3065

Closed
spring-projects-issues opened this issue Feb 3, 2015 · 1 comment
Closed
Assignees
Labels
in: config An issue in spring-security-config type: bug A general bug type: jira An issue that was migrated from JIRA
Milestone

Comments

@spring-projects-issues
Copy link

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 spring-projects-issues added Namespace type: bug A general bug type: jira An issue that was migrated from JIRA labels Feb 5, 2016
@rwinch rwinch added in: config An issue in spring-security-config and removed Namespace labels May 3, 2019
@koosg
Copy link
Contributor

koosg commented Aug 18, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: config An issue in spring-security-config type: bug A general bug type: jira An issue that was migrated from JIRA
Projects
None yet
Development

No branches or pull requests

4 participants