Jetty
  1. Jetty
  2. JETTY-206

HttpServletRequest.getServerPort always returns 80 when using the Ajp13SocketConnector

    Details

    • Type: Bug Bug
    • Status: Resolved Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 6.1.0rc3
    • Fix Version/s: 6.1.0
    • Component/s: None
    • Labels:
      None
    • Number of attachments :
      0

      Description

      One consequence of this is that HttpServletResponse.sendRedirect doesn't work if the Apache front-end is running on a port other than 80. HttpServletRequest.getServerName on the other hand seems to works fine (it returns the host name of the Apache server).

        Activity

        Hide
        Greg Wilkins added a comment -

        Fixed in SVN trunk and for 6.1.0

        the problem was that the AJP request had been implemented incorrectly and it was setting the server port as the remote port. (the true remote port appears to be unavailable with AJP).

        Show
        Greg Wilkins added a comment - Fixed in SVN trunk and for 6.1.0 the problem was that the AJP request had been implemented incorrectly and it was setting the server port as the remote port. (the true remote port appears to be unavailable with AJP).

          People

          • Assignee:
            Leopoldo Agdeppa III
            Reporter:
            Eric Jain
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: