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

Error Data Paylod Not Following Spec in Faces 4.0

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • 4.0.0, 4.1.0-RC2
    • 5.0.0, 4.0.3, 4.1.0-RC3
    • JSR-314
    • None

    Description

      The Error Data Payload (Table 16)] outlined in the spec isn't followed. As seen in the screenshot below something seems to be going wrong for responseText, responseCode, and status. Additionally, description and responseXML aren't included in the payload.

      The response from the server still seems to be accurate:

      <?xml version="1.0" encoding="UTF-8"?><partial-response><error><error-name>org.apache.myfaces.view.facelets.el.ContextAwarePropertyNotFoundException</error-name><error-message><![CDATA[jakarta.el.PropertyNotFoundException: Target Unreachable, identifier [testCode] resolved to null]]></error-message></error></partial-response>

      The information seems to be lost somewhere in between the server response and error payload generation.

       

      Attachments

        1. Screenshot 2024-07-22 153633.png
          152 kB
          Thomas Smith
        2. test-faces22-ajax.war
          125 kB
          Volodymyr Siedlecki

        Activity

          People

            werpu Werner Punz
            tssmith04 Thomas Smith
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified