Uploaded image for project: 'JSPWiki'
  1. JSPWiki
  2. JSPWIKI-805

more general support for X-Forwarded-For header

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.10
    • Fix Version/s: 2.10
    • Component/s: Core & storage
    • Labels:
      None
    • Environment:

      All

      Description

      As a follow-up on JSPWIKI-804 we need more support for the X-Forwarded-For header.

      For example the RecentChangesPlugin shows Authors, but not the X-Forwarded-For address.

      The IfPlugin also has an option to filter based on IP adddress.

      On several places we do logging with the IP address.

      All these should also support the X-Forwarded-For header.
      This can be done easy by changing occurences of request.getRemoteAddress() by HttpUtil.getRemoteAddress(request).

      Patch coming up....

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                metskem Harry Metske
                Reporter:
                metskem Harry Metske
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: