Jetty
  1. Jetty
  2. JETTY-1501

Setting custom error response message changes page title

    Details

    • Type: Improvement Improvement
    • Status: Resolved Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 7.5.4
    • Fix Version/s: 7.6.6, 8.1.6
    • Component/s: Servlet
    • Labels:
      None
    • Number of attachments :
      0

      Description

      There is a method in org.eclipse.jetty.server.Response: public void sendError(int code, String message)

      When message is not null it gets placed in both the title and body of the page. In other servers, such as Tomcat, the default behavior is to change the body but leave the title unchanged. For example, Tomcat has a property org.apache.coyote.USE_CUSTOM_STATUS_MSG_IN_HEADER which defaults to false. It may be worth adding such an option in Jetty, or changing the behavior of sendError such that the message is not inserted into the title.

        Activity

          People

          • Assignee:
            Jan Bartel
            Reporter:
            Jason Resch
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: