Uploaded image for project: 'Artifactory Binary Repository'
  1. Artifactory Binary Repository
  2. RTFACT-9833

Using HTTPS with nuget package search, more than 80 versions of a package fails to load due to HTTP use

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Resolution: Done
    • Affects Version/s: 4.5.1, 4.7.1, 4.8.0
    • Fix Version/s: 4.8.1
    • Component/s: NuGet, Search
    • Labels:
      None
    • Severity:
      Critical

      Description

      Adding 80+ versions of a package results in a rel="next" defined, that points only to http even when https is specified for searching for package.

      Steps to reproduce:

      1. Create/download 80+ versions of a nuget package and deploy them to Artifactory 4.5.1
      2. Ensure that reverse proxy is set to work with https only.
      3. Navigate to https://<artifactory>/artifactory/api/nuget/<nuget-repo>/FindPackagesById()?id=<package-name>
      4. Notice the use of http instead of https (as seen below in <link rel="next" href="http://..."), which limits the search to only the first page if using ONLY https traffic.

      This is the beginning of the response generated from the search:

      <?xml version='1.0' encoding='UTF-8'?>
      <feed xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns="http://www.w3.org/2005/Atom" xml:base="https://localhost:443/artifactory/api/nuget/nuget-local/">
        <title type="text">FindPackagesById</title>
        <id>https://localhost:443/artifactory/api/nuget/nuget-local/FindPackagesById</id>
        <updated>2016-04-13T20:43:37Z</updated>
        <link rel="self" title="FindPackagesById" href="FindPackagesById"/>
        <link rel="next" href="http://localhost/artifactory/api/nuget/nuget-local/FindPackagesById()?$skiptoken='jQuery','2.0.1.1'&amp;id=JQuery"/>
        <entry>
          <id>https://localhost:443/artifactory/api/nuget/nuget-local/Packages(Id='jQuery',Version='1.3.0')</id>
          <title type="text">jQuery</title>
          <summary type="text">jQuery is a fast and concise JavaScript Library that simplifies HTML document traversing, event handling, animating, and Ajax interactions for rapid web development</summary>
      

        Attachments

          Issue Links

            Activity

                People

                Assignee:
                Unassigned
                Reporter:
                daniela Daniel Augustine
                Votes:
                2 Vote for this issue
                Watchers:
                3 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: