Paul Nicolucci created MYFACES-4559:
---------------------------------------

             Summary: 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: 4.0.0-RC4, 3.0.2, 2.3-next-M7, 2.3.10
            Reporter: Paul Nicolucci
            Assignee: Paul Nicolucci


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)

Reply via email to