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

'default-lazy-init' attribute is not processed when XSD validation is disabled [SPR-8335] #12983

Closed
spring-projects-issues opened this issue May 13, 2011 · 4 comments
Assignees
Labels
in: core Issues in core modules (aop, beans, core, context, expression) status: backported An issue that has been backported to maintenance branches type: bug A general bug
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

Andruschuk Borislav opened SPR-8335 and commented

I've noticed that default-lazy-init attribute inside beans element is not processed when XSD validation is disabled. Thus all singletons that should be lazy become initialized. Tests are attached to the issue.


Affects: 3.0.5

Attachments:

Referenced from: pull request #2071, and commits 21d3bf8, 4938dab, cba355a

Backported to: 5.0.12, 4.3.22

3 votes, 5 watchers

@spring-projects-issues
Copy link
Collaborator Author

Sébastien Deleuze commented

Surprising but I can confirm this issue.

@spring-projects-issues
Copy link
Collaborator Author

Michel Schudel commented

Sébastien Deleuze

The root cause is that the xml parser does not fill in default values from the xsd when validation is disabled. The beans parser should take this into account.

I created a pull request that should solve the issue:

#2071

 

@spring-projects-issues
Copy link
Collaborator Author

Juergen Hoeller commented

This looks valid indeed and is worth backporting to 5.0.12 and 4.3.22 from my perspective.

@spring-projects-issues
Copy link
Collaborator Author

Sébastien Deleuze commented

Merged, thanks.

@spring-projects-issues spring-projects-issues added type: bug A general bug status: backported An issue that has been backported to maintenance branches in: core Issues in core modules (aop, beans, core, context, expression) labels Jan 11, 2019
@spring-projects-issues spring-projects-issues added this to the 5.1.4 milestone Jan 11, 2019
This was referenced Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: core Issues in core modules (aop, beans, core, context, expression) status: backported An issue that has been backported to maintenance branches type: bug A general bug
Projects
None yet
Development

No branches or pull requests

2 participants