Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-4559

JsfArtifactProducer(2.3/3.0/2.3-next) and FacesArtifactProducter(4.0) are incorrect for application implicit object

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.3.10, 2.3-next-M7, 3.0.2, 4.0.0-RC4
    • 2.3.11, 3.0.3, 2.3-next-M8, 4.0.0-RC5
    • General
    • None

    Description

      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

      FacesArtifactProducer for the application implicit object: 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 does.

      The spec is clear here as well: https://jakarta.ee/specifications/faces/4.0/jakarta-faces-4.0.html#a2830

      Attachments

        Activity

          People

            paul.nicolucci Paul Nicolucci
            paul.nicolucci Paul Nicolucci
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: