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

NPE in ExternalContextImpl.encodeRedirectURL when no ViewRoot availab… #5384

Merged
merged 1 commit into from
Jan 20, 2024

Conversation

shadogray
Copy link
Contributor

#5383

FacesContextImpl: encodeRedirectURL accesses FacesContext.ViewRoot.attributes w/o checking, if ViewRoot has been set already
This causes NullPointerException and so failure of the request

@tandraschko
Copy link
Contributor

@arjantijms @BalusC @manfredriem could you please merge this ASAP?
i would like to not workaround this in DeltaSpike - and you might releasier earlier (fingers crossed)

@BalusC BalusC merged commit 350fbbe into eclipse-ee4j:master Jan 20, 2024
1 of 2 checks passed
@BalusC
Copy link
Contributor

BalusC commented Jan 20, 2024

Merged but please note that this PR is on master branch not on 4.0 branch. You'll need to create a separate PR for 4.0 branch.

@tandraschko
Copy link
Contributor

Can you merge to 4.0 pls?

@BalusC
Copy link
Contributor

BalusC commented Jan 21, 2024

You can't merge backwards in versions. In order to maintain a consistent revision history, you can only merge upwards in versions (e.g. first PR for 2.3 then simply merge into 3.0 then 4.0 then 4.1 then master (5.0)).

But leave it, I made another PR for 4.0 whereby I reviewed and cleaned up all this logic: #5385, see also the main ticket.

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.

3 participants