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

Prevent ScopedAttributeELResolver to create Session/ViewScope as a si… #4448

Merged
merged 1 commit into from
Sep 17, 2018

Conversation

kalgon
Copy link
Contributor

@kalgon kalgon commented Aug 20, 2018

Fix for #3943 (previously known as JAVASERVERFACES-3939).

When calling setValue(...) or getValue(...) on ScopedAttributeELResolver, those methods do not check if a session exists before calling ExternalContext.getSessionMap() or if a view-scope exists before calling UIViewRoot.getViewMap(). This could mean that a superfluous session could be created or that a view-scope could be created in a transient view (and produce some confusing warnings in the logs).

I know this issue has already been closed (for the wrong reason in my opinion) but I would like it to be re-examined.

@kalgon
Copy link
Contributor Author

kalgon commented Aug 21, 2018

Reproducer

…de-effect (by calling getValue/setValue)

Signed-off-by: Xavier DURY <kalgon@hotmail.com>
@arjantijms arjantijms merged commit 469ae67 into eclipse-ee4j:master Sep 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants