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

FISH-84 Fix for using EL to configure OpenId in EAR #5212

Merged
merged 4 commits into from
Apr 23, 2021

Conversation

OndroMih
Copy link
Contributor

Description

This fixes #4469.

Sometimes CDI.current().getBeanManager() returns a bean manager for another module in the EAR (in this case for the EJB JAR instead of for the WAR). As suggested in https://lists.jboss.org/pipermail/cdi-dev/2016-April/008185.html, looking up the bean manager using InitialContext returns the correct bean manager for the current module (WAR in this case).

Also fixes an issue in Admin Console: https://github.com/sharpedavid/el-bug-example has app to deploy to Payara. Go to admin console and click on the application name. At the bottom of the page there should be a component table with entries.

Important Info

Testing

New tests

Tests in this PR, in tests/payara-samples/samples/openid:

  • OpenIdELInEarTest - test for using EL to configure OpenID connector in EAR
  • OpenIdELTest - test for using EL to configure OpenID connector in WAR, just in case

Testing Performed

Manual test of the UI change in Admin Console. Automated tests in payara-samples.

Test suites executed

  • Quicklook (all passed)
  • Payara Samples (RemoteEjbClientIT.transactionIdAddedAsBaggageIT failed but it's unrelated)

Testing Environment

  • Ubuntu 20.04.2 LTS
  • OpenJDK 64-Bit Server VM AdoptOpenJDK (build 11.0.9.1+1, mixed mode)
  • Maven 3.6.3

@Pandrex247
Copy link
Member

Jenkins test please

@Pandrex247 Pandrex247 merged commit 72eac25 into payara:master Apr 23, 2021
@OndroMih OndroMih deleted the Community-FISH-84-enterprise-ear branch April 26, 2021 09:53
JamesHillyard pushed a commit to JamesHillyard/Payara that referenced this pull request Oct 28, 2021
…rise-ear

FISH-84 Fix for using EL to configure OpenId in EAR
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants