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

relative links on repository browsing

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 2.11.4
    • Fix Version/s: None
    • Component/s: Browse Storage
    • Labels:
      None

      Description

      I'm running the repository behind an http proxy that is on a different host, and changes the path to the repository. When repository browsing is enabled, the repository is returning absolute links. It correctly substitutes the X-Forwarded-Host for host, but the absolute link can't substitute the path as there is no such thing as X-Forwarded-Port. The links should be relative. This relates to https://issues.sonatype.org/browse/NEXUS-803 and is a regression as far as I can tell, unless I'm missing some configuration. Below is a tcp stream taken from a wireshark showing the get request and the corresponding response with absolute paths

      GET /nexus/content/repositories/kaazing.enterprise.public/com/ HTTP/1.1
      X-Forwarded-Server: 172.18.0.2
      X-Forwarded-Server: 172.18.0.2
      X-Forwarded-Proto: https
      X-Forwarded-Proto: https
      X-Forwarded-Host: maven.kaazing.com:443
      X-Forwarded-Host: maven.kaazing.com:443
      X-Forwarded-For: 192.168.99.1
      X-Forwarded-For: 172.18.0.3
      Via: 1.1 kaazing
      Via: 1.1 kaazing
      User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.116 Safari/537.36
      Upgrade-Insecure-Requests: 1
      If-Modified-Since: Fri, 26 Feb 2016 13:57:59 GMT
      Host: nexus.kaazing.wan:8081
      Forwarded: for=192.168.99.1;by=172.18.0.2;proto=https;host=maven.kaazing.com:443
      Forwarded: for=172.18.0.3;by=172.18.0.2;proto=https;host=maven.kaazing.com:443
      Cookie: km_lv=x; kvcd=1390777154973; km_ai=dpwspoon; km_ni=dpwspoon; km_uq=; __csess=1400785543412.CDEQJT.; optimizelyEndUserId=oeu1438719321968r0.7729943075682968; __unam=7639673-1506deb01e0-4432c4ea-1; _ceir=1; _drip_client_6483360=vid%253D5e046a4058ec01330aaf0ee7875afa48%2526pageViews%253D3%2526sessionPageCount%253D2%2526lastVisitedAt%253D1451410844035%2526weeklySessionCount%253D1%2526lastSessionAt%253D1451410831902%2526form%255B7945%255D%255Bauto_open%255D%253D1451410842; _drip_client_2019870=vid%253Deb1396204917013387020e9dd67883c3%2526pageViews%253D32%2526sessionPageCount%253D1%2526lastVisitedAt%253D1455593403106%2526weeklySessionCount%253D3%2526lastSessionAt%253D1455593403106%2526form%255B6601%255D%255Bauto_open%255D%253D1455593433%2526form%255B6601%255D%255Bmanual_close%255D%253D1446844569; tk_tc=1455608286143; tk_ni=38648174; _mkto_trk=id:233-BAJ-050&token:_mch-kaazing.com-1389057639244-48529; optimizelySegments=%7B%223204290397%22%3A%22gc%22%2C%223215220112%22%3A%22false%22%2C%223236220110%22%3A%22search%22%7D; optimizelyBuckets=%7B%7D; _ga=GA1.2.1949100949.1389057639; __utmt=1; __utma=185197363.1949100949.1389057639.1456870374.1457475130.2; __utmb=185197363.4.10.1457475130; __utmc=185197363; __utmz=185197363.1457475130.2.2.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=(not%20provided)
      Cache-Control: max-age=0
      Authorization: Basic aHNiYzp1JD1UQFt+Mn1ZPjJbPyJN
      Accept-Language: en-US
      Accept-Language: en;q=0.8
      Accept-Encoding: gzip
      Accept-Encoding: deflate
      Accept-Encoding: sdch
      Accept: text/html
      Accept: application/xhtml+xml
      Accept: application/xml;q=0.9
      Accept: image/webp
      Accept: */*;q=0.8
      
      HTTP/1.1 200 OK
      Date: Tue, 08 Mar 2016 22:16:40 GMT
      Server: Nexus/2.11.4-01
      X-Frame-Options: SAMEORIGIN
      X-Content-Type-Options: nosniff
      Accept-Ranges: bytes
      Last-Modified: Fri, 26 Feb 2016 13:57:59 GMT
      Pragma: no-cache
      Cache-Control: post-check=0, pre-check=0
      Expires: 0
      Content-Type: text/html
      Transfer-Encoding: chunked
      
      1941
      <html>
        <head>
          <title>Index of /repositories/kaazing.enterprise.public/com</title>
          <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
      
          <link rel="icon" type="image/png" href="https://maven.kaazing.com/nexus/favicon.png">
          <!--[if IE]>
          <link rel="SHORTCUT ICON" href="https://maven.kaazing.com/nexus/favicon.ico"/>
          <![endif]-->
      
          <link rel="stylesheet" href="https://maven.kaazing.com/nexus/static/css/Sonatype-content.css?2.11.4-01" type="text/css" media="screen" title="no title" charset="utf-8">
        </head>
        <body>
          <h1>Index of /repositories/kaazing.enterprise.public/com</h1>
          <table cellspacing="10">
            <tr>
              <th align="left">Name</th>
              <th>Last Modified</th>
              <th>Size</th>
              <th>Description</th>
            </tr>
            <tr>
              <td><a href="../">Parent Directory</a></td>
            </tr>
                        <tr>
                  <td><a href="https://maven.kaazing.com/nexus/content/repositories/kaazing.enterprise.public/com/adobe/">adobe/</a></td>
                  <td>Thu Oct 01 15:16:29 PDT 2015</td>
                  <td align="right">
                                    &nbsp;
                                </td>
                  <td></td>
                </tr>
                        <tr>
                  <td><a href="https://maven.kaazing.com/nexus/content/repositories/kaazing.enterprise.public/com/amazonaws/">amazonaws/</a></td>
                  <td>Mon Dec 07 01:36:36 PST 2015</td>
                  <td align="right">
                                    &nbsp;
                                </td>
                  <td></td>
                </tr>
                        <tr>
                  <td><a href="https://maven.kaazing.com/nexus/content/repositories/kaazing.enterprise.public/com/d3/">d3/</a></td>
                  <td>Thu Oct 01 15:19:09 PDT 2015</td>
                  <td align="right">
                                    &nbsp;
                                </td>
                  <td></td>
                </tr>
                        <tr>
                  <td><a href="https://maven.kaazing.com/nexus/content/repositories/kaazing.enterprise.public/com/fasterxml/">fasterxml/</a></td>
                  <td>Tue Sep 22 16:17:16 PDT 2015</td>
                  <td align="right">
                                    &nbsp;
                                </td>
                  <td></td>
                </tr>
                        <tr>
                  <td><a href="https://maven.kaazing.com/nexus/content/repositories/kaazing.enterprise.public/com/google/">google/</a></td>
                  <td>Mon Oct 05 16:19:04 PDT 2015</td>
                  <td align="right">
                                    &nbsp;
                                </td>
                  <td></td>
                </tr>
                        <tr>
                  <td><a href="https://maven.kaazing.com/nexus/content/repositories/kaazing.enterprise.public/com/googlecode/">googlecode/</a></td>
                  <td>Fri Feb 26 06:00:18 PST 2016</td>
                  <td align="right">
                                    &nbsp;
                                </td>
                  <td></td>
                </tr>
                        <tr>
                  <td><a href="https://maven.kaazing.com/nexus/content/repositories/kaazing.enterprise.public/com/hazelcast/">hazelcast/</a></td>
                  <td>Tue Sep 22 16:17:35 PDT 2015</td>
                  <td align="right">
                                    &nbsp;
                                </td>
                  <td></td>
                </tr>
                        <tr>
                  <td><a href="https://maven.kaazing.com/nexus/content/repositories/kaazing.enterprise.public/com/jcraft/">jcraft/</a></td>
                  <td>Mon Dec 07 01:42:29 PST 2015</td>
                  <td align="right">
                                    &nbsp;
                                </td>
                  <td></td>
                </tr>
                        <tr>
                  <td><a href="https://maven.kaazing.com/nexus/content/repositories/kaazing.enterprise.public/com/jezhumble/">jezhumble/</a></td>
                  <td>Thu Oct 01 15:19:39 PDT 2015</td>
                  <td align="right">
                                    &nbsp;
                                </td>
                  <td></td>
                </tr>
                        <tr>
                  <td><a href="https://maven.kaazing.com/nexus/content/repositories/kaazing.enterprise.public/com/kaazing/">kaazing/</a></td>
                  <td>Tue Feb 23 06:58:41 PST 2016</td>
                  <td align="right">
                                    &nbsp;
                                </td>
                  <td></td>
                </tr>
                        <tr>
                  <td><a href="https://maven.kaazing.com/nexus/content/repositories/kaazing.enterprise.public/com/mycila/">mycila/</a></td>
                  <td>Tue Jan 19 03:58:47 PST 2016</td>
                  <td align="right">
                                    &nbsp;
                                </td>
                  <td></td>
                </tr>
                        <tr>
                  <td><a href="https://maven.kaazing.com/nexus/content/repositories/kaazing.enterprise.public/com/puppycrawl/">puppycrawl/</a></td>
                  <td>Tue Jan 12 06:53:07 PST 2016</td>
                  <td align="right">
                                    &nbsp;
                                </td>
                  <td></td>
                </tr>
                        <tr>
                  <td><a href="https://maven.kaazing.com/nexus/content/repositories/kaazing.enterprise.public/com/sun/">sun/</a></td>
                  <td>Fri Feb 26 05:58:57 PST 2016</td>
                  <td align="right">
                                    &nbsp;
                                </td>
                  <td></td>
                </tr>
                        <tr>
                  <td><a href="https://maven.kaazing.com/nexus/content/repositories/kaazing.enterprise.public/com/thoughtworks/">thoughtworks/</a></td>
                  <td>Fri Nov 13 00:54:58 PST 2015</td>
                  <td align="right">
                                    &nbsp;
                                </td>
                  <td></td>
                </tr>
                        <tr>
                  <td><a href="https://maven.kaazing.com/nexus/content/repositories/kaazing.enterprise.public/com/tibco/">tibco/</a></td>
                  <td>Thu Oct 01 15:22:07 PDT 2015</td>
                  <td align="right">
                                    &nbsp;
                                </td>
                  <td></td>
                </tr>
                        <tr>
                  <td><a href="https://maven.kaazing.com/nexus/content/repositories/kaazing.enterprise.public/com/yahoo/">yahoo/</a></td>
                  <td>Thu Oct 01 15:19:08 PDT 2015</td>
                  <td align="right">
                                    &nbsp;
                                </td>
                  <td></td>
                </tr>
                  </table>
        </body>
      </html>
      
      
      
      
      

      I'm running Sonatype Nexus™ 2.11.4-01

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            david.witherspoon.kaazing David Witherspoon
            Last Updated By:
            Peter Lynch
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Date of First Response:

                tigCommentSecurity.panel-title