Skip to content
This repository was archived by the owner on Mar 20, 2021. It is now read-only.
This repository was archived by the owner on Mar 20, 2021. It is now read-only.

UnsupportedOperationException in ExternalContext#isSecure when trying to set flash cookie #3535

@javaserverfaces

Description

@javaserverfaces

Since Mojarra 2.1.24, the ELFlash class calls isSecure() on the external context in order to determine whether the secure property should be set on the cookie (#2914). This call leads to an UnsupportedOperationException if the application extends ExternalContextWrapper without overriding the isSecure method. The isSecure method should have been defined in the wrapper class, which has been fixed in JSF 2.2.

This problem has already been fixed in the MOJARRA_2_1X_ROLLING branch, but I can only find the SVN commit, not a JIRA issue. The commit, which has been done on June 12th, 2014, refers to "bug18611757" (which I cannot find on the web).

I created this issue so that the bug will be visible in JIRA, with the correct fix version (I guess 2.1.30), and so that it will be mentioned in the release notes.

Affected Versions

[2.1.29]

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions