glassfish
  1. glassfish
  2. GLASSFISH-20256

The description coming w/ 404 error is not correct

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 4.0_b83
    • Fix Version/s: 4.0_b85
    • Component/s: web_container
    • Labels:
      None

      Description

      When we request a resource which doesn't exist, webcontainer reports 404 error w/ description like:
      The requested resource (Not Found) is not available.

      instead of providing the actual URL.
      For sure before returning URL we have to check if for special HTML characters.

        Activity

        Hide
        Shing Wai Chan added a comment -
        • What is the impact on the customer of the bug?
          Confusing error message.
        • What is the cost/risk of fixing the bug?
          One line java code change + a LocalStrings.properties file change.
        • Is there an impact on documentation or message strings?
          No.
        • Which tests should QA (re)run to verify the fix did not destabilize GlassFish?
          SQE web tests
        • Which is the targeted build of 4.0 for this fix?
          4.0_b85
        • If this an integration of a new version of a component from another project,
          what are the changes that are being brought in? This might be list of
          Jira issues from that project or a list of revision messages.
          N/A
        Show
        Shing Wai Chan added a comment - What is the impact on the customer of the bug? Confusing error message. What is the cost/risk of fixing the bug? One line java code change + a LocalStrings.properties file change. Is there an impact on documentation or message strings? No. Which tests should QA (re)run to verify the fix did not destabilize GlassFish? SQE web tests Which is the targeted build of 4.0 for this fix? 4.0_b85 If this an integration of a new version of a component from another project, what are the changes that are being brought in? This might be list of Jira issues from that project or a list of revision messages. N/A
        Hide
        Shing Wai Chan added a comment -

        This issue is similar to GLASSFISH-20254.

        Show
        Shing Wai Chan added a comment - This issue is similar to GLASSFISH-20254 .
        Hide
        Shing Wai Chan added a comment -

        In v3, the corresponding error message is:
        "The requested resource () is not available."
        which is also not good.

        Look like grizzlyResponse.getMessage() returns a different value here.
        I take a more detailed looked at those messages. There is no need to include the additional message there (as in Tomcat.)

        Sending web-core/src/main/java/org/apache/catalina/valves/ErrorReportValve.java
        Sending web-core/src/main/resources/org/apache/catalina/valves/LocalStrings.properties
        Transmitting file data ..
        Committed revision 61395.

        Show
        Shing Wai Chan added a comment - In v3, the corresponding error message is: "The requested resource () is not available." which is also not good. Look like grizzlyResponse.getMessage() returns a different value here. I take a more detailed looked at those messages. There is no need to include the additional message there (as in Tomcat.) Sending web-core/src/main/java/org/apache/catalina/valves/ErrorReportValve.java Sending web-core/src/main/resources/org/apache/catalina/valves/LocalStrings.properties Transmitting file data .. Committed revision 61395.

          People

          • Assignee:
            Shing Wai Chan
            Reporter:
            oleksiys
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: