Uploaded image for project: 'Dev - Nexus Repo'
  1. Dev - Nexus Repo
  2. NEXUS-449

get logs isn't working with baseUrl set

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0-beta
    • Fix Version/s: 1.0-beta
    • Component/s: None
    • Labels:
      None

      Description

      I'm testing a mod proxy setup and the logs are not working. I'm getting a 401. Note that this is working if i go directly against the localhost (without changing the base url). See headers here:

      Good request:

      GET /nexus/service/local/logs/nexus.log HTTP/1.1
      Host: localhost:8081
      User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1.16) Gecko/20080702 Firefox/2.0.0.16
      Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
      Accept-Language: en-us,en;q=0.5
      Accept-Encoding: gzip,deflate
      Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
      Keep-Alive: 300
      Connection: keep-alive
      Cookie: JSESSIONID=1ks2pojlwcr1m; ys-st-privileges-grid=o%3Acolumns%3Da%253Ao%25253Aid%25253Ds%2525253Aprivilege-config-name-col%25255Ewidth%25253Dn%2525253A360%255Eo%25253Aid%25253Ds%2525253Aprivilege-config-type-col%25255Ewidth%25253Dn%2525253A468%255Eo%25253Aid%25253Ds%2525253Aprivilege-config-method-col%25255Ewidth%25253Dn%2525253A175%5Esort%3Do%253Afield%253Ds%25253Aname%255Edirection%253Ds%25253AASC%5Eheight%3Dn%253A369; st-username=s%3Aadmin; st-jsessionid=s%3A1ks2pojlwcr1m; ys-st-users-grid=o%3Acolumns%3Da%253Ao%25253Aid%25253Ds%2525253Auser-config-userid-col%25255Ewidth%25253Dn%2525253A175%255Eo%25253Aid%25253Ds%2525253Auser-config-name-col%25255Ewidth%25253Dn%2525253A175%255Eo%25253Aid%25253Ds%2525253Auser-config-email-col%25255Ewidth%25253Dn%2525253A175%255Eo%25253Aid%25253Ds%2525253Auser-config-status-col%25255Ewidth%25253Dn%2525253A175%255Eo%25253Aid%25253Ds%2525253Auser-config-roles-col%25255Ewidth%25253Dn%2525253A339%5Esort%3Do%253Afield%253Ds%25253AuserId%255Edirection%253Ds%25253AASC%5Eheight%3Dn%253A150; ys-st-repos-maint-grid=o%3Acolumns%3Da%253Ao%25253Aid%25253Dn%2525253A0%25255Ewidth%25253Dn%2525253A175%255Eo%25253Aid%25253Dn%2525253A1%25255Ewidth%25253Dn%2525253A50%255Eo%25253Aid%25253Dn%2525253A2%25255Ewidth%25253Dn%2525253A300%255Eo%25253Aid%25253Ds%2525253Arepo-maint-url-col%25255Ewidth%25253Dn%2525253A514%5Esort%3Do%253Afield%253Ds%25253Aname%255Edirection%253Ds%25253AASC%5Eheight%3Dn%253A311; ys-st-feeds-grid=o%3Acolumns%3Da%253Ao%25253Aid%25253Dn%2525253A0%25255Ewidth%25253Dn%2525253A300%255Eo%25253Aid%25253Ds%2525253Afeeds-url-col%25255Ewidth%25253Dn%2525253A739%5Esort%3Do%253Afield%253Ds%25253Aname%255Edirection%253Ds%25253AASC%5Eheight%3Dn%253A253; st-authToken=s%3ADEPRECATED
      Cache-Control: max-age=0
      
      HTTP/1.x 200 OK
      Date: Tue, 05 Aug 2008 18:26:03 GMT
      Server: Noelios-Restlet-Engine/1.0..10
      Content-Type: text/plain
      Vary: Accept-Charset, Accept-Encoding, Accept-Language, Accept
      Transfer-Encoding: chunked
      

      Good request to config from proxy url:

      GET /nexustest/service/local/configs/current HTTP/1.1
      Host: www.infinity.nu
      User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1.16) Gecko/20080702 Firefox/2.0.0.16
      Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
      Accept-Language: en-us,en;q=0.5
      Accept-Encoding: gzip,deflate
      Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
      Keep-Alive: 300
      Connection: keep-alive
      Referer: http://www.infinity.nu/nexustest/
      Cookie: st-username=s%3Aadmin; ys-st-repos-maint-grid=o%3Acolumns%3Da%253Ao%25253Aid%25253Dn%2525253A0%25255Ewidth%25253Dn%2525253A175%255Eo%25253Aid%25253Dn%2525253A1%25255Ewidth%25253Dn%2525253A50%255Eo%25253Aid%25253Dn%2525253A2%25255Ewidth%25253Dn%2525253A300%255Eo%25253Aid%25253Ds%2525253Arepo-maint-url-col%25255Ewidth%25253Dn%2525253A514%5Esort%3Do%253Afield%253Ds%25253Aname%255Edirection%253Ds%25253AASC%5Eheight%3Dn%253A285
      
      HTTP/1.x 200 OK
      Date: Tue, 05 Aug 2008 18:26:51 GMT
      Server: Noelios-Restlet-Engine/1.0..10
      Content-Type: text/xml
      Vary: Accept-Charset,Accept-Encoding,Accept-Language,Accept
      Transfer-Encoding: chunked
      

      Good request to logs from proxy url via ui:

      http://www.infinity.nu/nexustest/service/local/logs/nexus.log?_dc=1217960849526
      
      GET /nexustest/service/local/logs/nexus.log?_dc=1217960849526 HTTP/1.1
      Host: www.infinity.nu
      User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1.16) Gecko/20080702 Firefox/2.0.0.16
      Accept: text/plain
      Accept-Language: en-us,en;q=0.5
      Accept-Encoding: gzip,deflate
      Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
      Keep-Alive: 300
      Connection: keep-alive
      X-Requested-With: XMLHttpRequest
      Authorization: Basic YWRtaW46YWRtaW4xMjM=
      Referer: http://www.infinity.nu/nexustest/
      Cookie: st-username=s%3Aadmin; ys-st-repos-maint-grid=o%3Acolumns%3Da%253Ao%25253Aid%25253Dn%2525253A0%25255Ewidth%25253Dn%2525253A175%255Eo%25253Aid%25253Dn%2525253A1%25255Ewidth%25253Dn%2525253A50%255Eo%25253Aid%25253Dn%2525253A2%25255Ewidth%25253Dn%2525253A300%255Eo%25253Aid%25253Ds%2525253Arepo-maint-url-col%25255Ewidth%25253Dn%2525253A514%5Esort%3Do%253Afield%253Ds%25253Aname%255Edirection%253Ds%25253AASC%5Eheight%3Dn%253A285
      
      HTTP/1.x 200 OK
      Date: Tue, 05 Aug 2008 18:27:34 GMT
      Server: Noelios-Restlet-Engine/1.0..10
      Expires: Thu, 01 Jan 1970 00:00:00 GMT
      Set-Cookie: nxRememberMe="clJgEjFZVuRRN5lCpInkOsawSaKK4hLwegZK/QgR1Thk380v5wL9pA1NZo7QHr7erlnry1vt2AqIyM8Fj2HBCsl1lierxE9EJ1typI2GpgMeG+HmceNdrlN6KGh4AmjLG3zCUPo8E+QzGVs/EO3PIAGyYYtuYbW++oJDr5xfY9DwK4Omq5GijZSSmdpOHiYelPMa1XLwT0D/kNCUm6EVfG6TKwxViNtGdyzknY7abNU7ucw2UWfjFe24hH0SL0hZMXjPQYtMnPl5J5qfjU4EXX1a/Ijn0IKUEk5BmY+ipc6irMI/Rrmumq3QZSaXsqSPqFy2o/ZOWzUzICFq0kCJQ06MyAS4lte2Mr9/bbWVZ+uevkRsp2sbJUfacBDsyH4fZJpPSCmtcRZASMTpLxTpiiTHhVmB9Hf42eGB9vfoR9QFfK0U+in7fyrWyyAs3GPdM884yP9B8YdVfqUzqWhbzMDdUgS0PKpc3QsBDOqdsLzOpvUImFdomvJ58QvR5bI9/KP1puAwmeo=";Path=/nexus;Secure
      Set-Cookie: JSESSIONID=1t9f7tw6qy0gz;Path=/nexus
      Content-Type: text/plain; charset=ISO-8859-1
      Vary: Accept-Charset,Accept-Encoding,Accept-Language,Accept
      Transfer-Encoding: chunked
      
      

      Bad request when clicking the download link:

      http://www.infinity.nu/nexustest/service/local/logs/nexus.log
      
      GET /nexustest/service/local/logs/nexus.log HTTP/1.1
      Host: www.infinity.nu
      User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1.16) Gecko/20080702 Firefox/2.0.0.16
      Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
      Accept-Language: en-us,en;q=0.5
      Accept-Encoding: gzip,deflate
      Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
      Keep-Alive: 300
      Connection: keep-alive
      Referer: http://www.infinity.nu/nexustest/
      Cookie: st-username=s%3Aadmin; ys-st-repos-maint-grid=o%3Acolumns%3Da%253Ao%25253Aid%25253Dn%2525253A0%25255Ewidth%25253Dn%2525253A175%255Eo%25253Aid%25253Dn%2525253A1%25255Ewidth%25253Dn%2525253A50%255Eo%25253Aid%25253Dn%2525253A2%25255Ewidth%25253Dn%2525253A300%255Eo%25253Aid%25253Ds%2525253Arepo-maint-url-col%25255Ewidth%25253Dn%2525253A514%5Esort%3Do%253Afield%253Ds%25253Aname%255Edirection%253Ds%25253AASC%5Eheight%3Dn%253A285
      
      HTTP/1.x 401 Unauthorized
      Date: Tue, 05 Aug 2008 18:29:26 GMT
      Server: Jetty(6.1.11)
      Expires: Thu, 01 Jan 1970 00:00:00 GMT
      Set-Cookie: JSESSIONID=1asn5oxcploms;Path=/nexus
      WWW-Authenticate: NxBASIC realm="Sonatype Nexus Repository Manager API"
      Content-Length: 0
      Content-Type: text/plain; charset=ISO-8859-1
      
      

        Attachments

          Activity

            People

            Assignee:
            brianf Brian Fox
            Reporter:
            brianf Brian Fox
            Last Updated By:
            Peter Lynch Peter Lynch
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Date of First Response:

                tigCommentSecurity.panel-title