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-issuemaster opened this Issue May 13, 2011 · 4 comments

Comments

Projects
None yet
2 participants
@spring-issuemaster
Copy link
Collaborator

spring-issuemaster commented May 13, 2011

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-issuemaster

This comment has been minimized.

Copy link
Collaborator

spring-issuemaster commented Dec 26, 2018

Sébastien Deleuze commented

Surprising but I can confirm this issue.

@spring-issuemaster

This comment has been minimized.

Copy link
Collaborator

spring-issuemaster commented Jan 6, 2019

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-issuemaster

This comment has been minimized.

Copy link
Collaborator

spring-issuemaster commented Jan 7, 2019

Juergen Hoeller commented

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

@spring-issuemaster

This comment has been minimized.

Copy link
Collaborator

spring-issuemaster commented Jan 8, 2019

Sébastien Deleuze commented

Merged, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment