You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Paul Nicolucci (Jira)" <de...@myfaces.apache.org> on 2023/02/10 18:53:00 UTC

[jira] [Commented] (MYFACES-4559) JsfArtifactProducer(2.3/3.0/2.3-next) and FacesArtifactProducter(4.0) are incorrect for application implicit object

    [ https://issues.apache.org/jira/browse/MYFACES-4559?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17687242#comment-17687242 ] 

Paul Nicolucci commented on MYFACES-4559:
-----------------------------------------

Merged the fix to main, working on backports now.

> JsfArtifactProducer(2.3/3.0/2.3-next) and FacesArtifactProducter(4.0) are incorrect for application implicit object
> -------------------------------------------------------------------------------------------------------------------
>
>                 Key: MYFACES-4559
>                 URL: https://issues.apache.org/jira/browse/MYFACES-4559
>             Project: MyFaces Core
>          Issue Type: Bug
>          Components: General
>    Affects Versions: 2.3.10, 2.3-next-M7, 3.0.2, 4.0.0-RC4
>            Reporter: Paul Nicolucci
>            Assignee: Paul Nicolucci
>            Priority: Major
>             Fix For: 4.0.0-RC5
>
>
> JsfArtifactProducer for the application implicit object: [https://github.com/apache/myfaces/blob/2.3.x/impl/src/main/java/org/apache/myfaces/cdi/JsfArtifactProducer.java#L51|https://github.com/apache/myfaces/blob/2.3.x/impl/src/main/java/org/apache/myfaces/cdi/JsfArtifactProducer.java#L51]
> FacesArtifactProducer for the application implicit object: [https://github.com/apache/myfaces/blob/main/impl/src/main/java/org/apache/myfaces/cdi/FacesArtifactProducer.java#L60|https://github.com/apache/myfaces/blob/main/impl/src/main/java/org/apache/myfaces/cdi/FacesArtifactProducer.java#L60]
> These should not be returning the Application object but rather the ExternalContext.getContext() which is what the [ApplicationImplicitObject|https://github.com/apache/myfaces/blob/main/impl/src/main/java/org/apache/myfaces/el/resolver/implicitobject/ApplicationImplicitObject.java#L42] does.
> The spec is clear here as well: [https://jakarta.ee/specifications/faces/4.0/jakarta-faces-4.0.html#a2830|https://jakarta.ee/specifications/faces/4.0/jakarta-faces-4.0.html#a2830]



--
This message was sent by Atlassian Jira
(v8.20.10#820010)