Uploaded image for project: 'FishEye'
  1. FishEye
  2. FE-3040

FishEye Access Logging is not writing the username

      Hi,

      I activated Access Logging by following this document: http://confluence.atlassian.com/display/FISHEYE/Enabling+Access+Logging+in+FishEye
      The log file is created, and the output is like this:

      127.0.0.1 -  -  [27/Abr/2011:14:57:46 +0000] "GET / HTTP/1.1" 200 10943 
      127.0.0.1 -  -  [27/Abr/2011:14:57:55 +0000] "GET /static/lir8go/2static/images/handle_v.gif HTTP/1.1" 200 61 
      127.0.0.1 -  -  [27/Abr/2011:14:57:55 +0000] "GET /static/lir8go/2static/images/background_fader_context.png HTTP/1.1" 200 1180 
      127.0.0.1 -  -  [27/Abr/2011:14:57:56 +0000] "GET /avatar/admin?s=48 HTTP/1.1" 302 0 
      127.0.0.1 -  -  [27/Abr/2011:14:57:57 +0000] "GET /static/lir8go/2static/images/sprite_buttons.png HTTP/1.1" 200 6303 
      127.0.0.1 -  -  [27/Abr/2011:14:57:57 +0000] "GET /static/lir8go/2static/images/sprite_delta.png HTTP/1.1" 200 342 
      127.0.0.1 -  -  [27/Abr/2011:14:57:57 +0000] "GET /static/lir8go/2static/images/sprite_stream.png HTTP/1.1" 200 5059 
      127.0.0.1 -  -  [27/Abr/2011:14:57:57 +0000] "GET /static/lir8go/2static/images/sprite_branchselector.png HTTP/1.1" 200 5813 
      127.0.0.1 -  -  [27/Abr/2011:14:57:57 +0000] "GET /avatar/?s=48 HTTP/1.1" 200 1620 
      192.168.132.91 -  -  [27/Abr/2011:14:57:58 +0000] "GET /avatar/9b2d6dc968f89ef943e3169e01cd5b75?s=48 HTTP/1.1" 200 1619 
      127.0.0.1 -  -  [27/Abr/2011:14:57:58 +0000] "GET /static/lir8go/2static/images/spinner_003366.gif HTTP/1.1" 200 1849 
      127.0.0.1 -  -  [27/Abr/2011:14:57:58 +0000] "GET /json/cru/tooltipdata?key=CR-1 HTTP/1.1" 200 865 
      127.0.0.1 -  -  [27/Abr/2011:14:58:50 +0000] "GET /static/lir8go/2static/images/sprite_arrows.png HTTP/1.1" 200 3751 
      127.0.0.1 -  -  [27/Abr/2011:14:58:50 +0000] "GET /json/cru/tooltipdata?key=CR-2 HTTP/1.1" 200 865 
      

      The document above says that "the logs are written in NCSA format". However, the NCSA format page shows this sample output:

      125.125.125.125 - dsmith [10/Oct/1999:21:15:05 +0500] "GET /index.html HTTP/1.0" 200 1043 
      

      The username, such as dsmith, is missing in our logs.

      Please let me know if you need further information.

            [FE-3040] FishEye Access Logging is not writing the username

            Nice! Thanks a lot. Will wait for 2.7.8

            Tanel Tenso added a comment - Nice! Thanks a lot. Will wait for 2.7.8

            This is fixed in the upcoming 2.7.8.

            The instructions will be the same as before (in Enabling Access Logging in FishEye), except for the RequestLogHandler:

            • in line 7, org.mortbay.jetty.handler.RequestLogHandler will be replaced by com.cenqua.fisheye.web.jetty.FishEyeRequestLogHandler

            An subtask was created to update the documentation: FE-3844

            Pierre-Etienne Poirot (Inactive) added a comment - This is fixed in the upcoming 2.7.8. The instructions will be the same as before (in Enabling Access Logging in FishEye ), except for the RequestLogHandler : in line 7, org.mortbay.jetty.handler.RequestLogHandler will be replaced by com.cenqua.fisheye.web.jetty.FishEyeRequestLogHandler An subtask was created to update the documentation: FE-3844

            I kind of thought it myself. Thanks for update and scheduling issue to next release.

            Tanel Tenso added a comment - I kind of thought it myself. Thanks for update and scheduling issue to next release.

            The issue is because FishEye uses its own authentication stack for retrieving user credentials, separate from Jetty's Authenticator stack. As a result, the current user credentials are not visible using RequestLogHandler.

            Pierre-Etienne Poirot (Inactive) added a comment - The issue is because FishEye uses its own authentication stack for retrieving user credentials, separate from Jetty's Authenticator stack. As a result, the current user credentials are not visible using RequestLogHandler .

            Same problem for us too. No username is logged, though it should according to NCSA format. I could also provide additional information if required.
            Reading several discussions on this topic, question arises does it works for anyone? Is username logged in some installations?

            Tanel Tenso added a comment - Same problem for us too. No username is logged, though it should according to NCSA format. I could also provide additional information if required. Reading several discussions on this topic, question arises does it works for anyone? Is username logged in some installations?

              pepoirot Pierre-Etienne Poirot (Inactive)
              fkraemer Felipe Kraemer
              Affected customers:
              8 This affects my team
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: