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

Applications cannot override "com.sun.faces.enableDistributable" behavior #5345

Closed
pferraro opened this issue Oct 31, 2023 · 1 comment
Closed
Milestone

Comments

@pferraro
Copy link
Contributor

Mojarra defines a number of initialization parameters. While "com.sun.faces.enableDistributable" is one of them, Mojarra automatically overrides any existing setting provided by the application.
If a web application wanted explicitly disable this for a distributable web application, it would normally add a servlet context parameter within web.xml.
e.g.

<web-app>
  <distributable/>
  <context-param>
    <param-name>com.sun.faces.enableDistributable</param-name>
    <param-value>false</param-value>
  </context-param>
</web-app>

However, the ConfigureListener auto-enables the com.sun.faces.enableDistributable configuration property whenever it see that the tag in web.xml, overriding any custom setting.
I would expect Mojarra to respect the setting defined by the application, and only provide a default value if no value was specified.

@BalusC
Copy link
Contributor

BalusC commented Nov 4, 2023

Done, thank you for reporting the issue and providing PRs!

@BalusC BalusC closed this as completed Nov 4, 2023
@BalusC BalusC modified the milestones: 4.0.6, 4.1.0 Nov 4, 2023
pferraro added a commit to pferraro/wildfly that referenced this issue Mar 14, 2024
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

No branches or pull requests

2 participants