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

DataExporter: Delivers "No enum constant com.sun.faces.context.ExternalContextImpl.PREDEFINED_COOKIE_PROPERTIES.SameSite" #11908

Closed
tuerker opened this issue May 10, 2024 · 7 comments
Labels
Resolution: Wontfix Issue will not be fixed due to technical limitations third-party Issue is tracked in 3rd party library

Comments

@tuerker
Copy link
Contributor

tuerker commented May 10, 2024

Describe the bug

I was trying to migrate my app from PF13/JakarteEE8/Java8/Payara 5 to PF 14/JakartaEE10/Java21/Payara 6.

The DataExporter is not working anymore. I get this error:

[2024-05-10T17:20:10.323+0200] [Payara 6.2024.3] [SEVERE] [] [org.primefaces.application.exceptionhandler.PrimeExceptionHandler] [tid: _ThreadID=135 _ThreadName=http-thread-pool::http-listener-1(2)] [timeMillis: 1715354410323] [levelValue: 1000] [[
  No enum constant com.sun.faces.context.ExternalContextImpl.PREDEFINED_COOKIE_PROPERTIES.SameSite
java.lang.IllegalArgumentException: No enum constant com.sun.faces.context.ExternalContextImpl.PREDEFINED_COOKIE_PROPERTIES.SameSite
	at java.base/java.lang.Enum.valueOf(Enum.java:293)
	at com.sun.faces.context.ExternalContextImpl$PREDEFINED_COOKIE_PROPERTIES.valueOf(ExternalContextImpl.java:102)
	at com.sun.faces.context.ExternalContextImpl.addResponseCookie(ExternalContextImpl.java:765)
	at jakarta.faces.context.ExternalContextWrapper.addResponseCookie(ExternalContextWrapper.java:646)
	at jakarta.faces.context.ExternalContextWrapper.addResponseCookie(ExternalContextWrapper.java:646)

My hope would be that this is somehow a "known" issue, which somebody could quickly answer, or at least give a hint whether this is a PF or Payara issue. Otherwise, I will of course need to dig deeper into this issue and prepare a reproducer.

Many thanks in advance for your response.

Reproducer

No response

Expected behavior

No response

PrimeFaces edition

Community

PrimeFaces version

14.0.0

Theme

No response

JSF implementation

Mojarra

JSF version

4

Java version

21

Browser(s)

No response

@tuerker tuerker added ‼️ needs-triage Issue needs triaging 🐞 defect Bug...Something isn't working labels May 10, 2024
@melloware

This comment was marked as outdated.

@melloware
Copy link
Member

melloware commented May 10, 2024

@tuerker found it: https://forum.primefaces.org/viewtopic.php?t=80045

Its a mojarra bug which should be already fixed in newer versions: eclipse-ee4j/mojarra#5165

Payara issue: payara/Payara#6340

@melloware melloware added third-party Issue is tracked in 3rd party library Resolution: Wontfix Issue will not be fixed due to technical limitations and removed 🐞 defect Bug...Something isn't working ‼️ needs-triage Issue needs triaging labels May 10, 2024
@melloware melloware closed this as not planned Won't fix, can't repro, duplicate, stale May 10, 2024
@tuerker
Copy link
Contributor Author

tuerker commented May 10, 2024

@melloware many thanks for the hint. it is a pity that this issue is still persistent in the latest payara version.

@melloware
Copy link
Member

melloware commented May 10, 2024

I say it time and time again...Payara is the worst of the EE servers I don't know why its so popular.... 😄

They take forever to fix bugs or ignore them entirely.

@tandraschko
Copy link
Member

Nothing new:
payara/Payara#6578 (comment)

@tuerker
Copy link
Contributor Author

tuerker commented May 10, 2024

@melloware Which EE server you would suggest?

@melloware
Copy link
Member

@tuerker this is a hot topic and everyone has their opinion but I personally have never had an issue with FREE Wildfly. When Mojarra updates its really easy to just upgrade Mojarra JAR yourself to the latest so you wouldn't be stuck with Payara issues like that.

I know others really like TomEE or OpenLiberty as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: Wontfix Issue will not be fixed due to technical limitations third-party Issue is tracked in 3rd party library
Projects
None yet
Development

No branches or pull requests

3 participants