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

different metadata values in search results NuGet proxy repo compared to Nuget hosted repo

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Medium
    • Resolution: Unresolved
    • Affects Version/s: 2.7, 3.4.0
    • Fix Version/s: None
    • Component/s: NuGet
    • Story Points:
      0

      Description

      1) Download http://www.nuget.org/packages/Microsoft.AspNet.WebApi.Client/5.0.0
      2) Examine the metadata inside the nuspec file.

      Microsoft.AspNet.WebApi.Client.nuspec
      <?xml version="1.0"?>
      <package xmlns="http://schemas.microsoft.com/packaging/2012/06/nuspec.xsd">
        <metadata>
          <id>Microsoft.AspNet.WebApi.Client</id>
          <version>5.0.0</version>
          <title>Microsoft ASP.NET Web API 2 Client</title>
          <authors>Microsoft</authors>
          <owners>Microsoft</owners>
          <licenseUrl>http://www.microsoft.com/web/webpi/eula/aspnetcomponent_rtw_ENU.htm</licenseUrl>
          <projectUrl>http://www.asp.net/web-api</projectUrl>
          <requireLicenseAcceptance>true</requireLicenseAcceptance>
          <description>This package adds support for formatting and content negotiation to System.Net.Http. It includes support for JSON, XML, and form URL encoded data.</description>
          <summary>This package adds support for formatting and content negotiation to System.Net.Http.</summary>
          <releaseNotes>Please go here to view the release notes: http://go.microsoft.com/fwlink/?LinkID=320753&amp;clcid=0x409</releaseNotes>
          <copyright>© Microsoft Corporation. All rights reserved.</copyright>
          <language>en-US</language>
          <tags>Microsoft AspNet WebApi AspNetWebApi HttpClient</tags>
          <dependencies>
            <group targetFramework=".NETFramework4.5">
              <dependency id="Newtonsoft.Json" version="4.5.11" />
            </group>
            <group targetFramework=".NETPortable0.0-wp8+netcore45+net45">
              <dependency id="Newtonsoft.Json" version="4.5.11" />
              <dependency id="Microsoft.Net.Http" version="2.2.13" />
            </group>
          </dependencies>
          <frameworkAssemblies>
            <frameworkAssembly assemblyName="System.Net.Http" targetFramework=".NETFramework4.5" />
          </frameworkAssemblies>
        </metadata>
      </package>
      

      When the item is searched for on nuget.org ( or against a nexus proxy repo against nuget.org) the metadata in the search entry is different VS when the artifact is uploaded to a Nexus hosted NuGet repo and searched.

      Compare

      curl -v "https://www.nuget.org/api/v2/Search%28%29?\$filter=IsLatestVersion&\$skip=0&\$top=30&searchTerm=%27microsoft.aspnet.webapi.client%27&targetFramework=%27net45%27&includePrerelease=false" -o nuget.org.xml
      

      to

      curl -v "http://localhost:8081/nexus/service/local/nuget/nuget-local/Search%28%29?\$filter=IsLatestVersion&\$skip=0&\$top=30&searchTerm=%27microsoft.aspnet.webapi.client%27&targetFramework=%27net45%27&includePrerelease=false" -o nexus-local.xml -u admin:admin123
      

      Nexus Hosted Feed Entry contains:

            <d:Language m:null="true"></d:Language>
            <d:ReportAbuseUrl m:null="true"></d:ReportAbuseUrl>
            <d:ReleaseNotes m:null="true"></d:ReleaseNotes>
      

      Original Feed entry contains:

      <d:Language>en-US</d:Language>
      <d:ReportAbuseUrl>https://www.nuget.org/package/ReportAbuse/Microsoft.AspNet.WebApi.Client/5.0.0</d:ReportAbuseUrl>
            <d:ReleaseNotes>Please go here to view the release notes: http://go.microsoft.com/fwlink/?LinkID=320753&amp;clcid=0x409</d:ReleaseNotes>
      

      The title is also wrong. Local feed contains:

            <d:Title>Microsoft ASP.NET Web API Client Libraries</d:Title>
      

      should be

            <d:Title>Microsoft ASP.NET Web API 2 Client</d:Title>
      

      And the package hash and size is different for the same file:

      Nexus hosted repo:

      <d:PackageHash>yvcCEHUckwmGe8MziCBYrFEvpdE6xIrWVWn3ST8ZWFNAZXMjz0VXOz1erm2MmhXAy/ZcwPje3MJLLP4UnBbVQg==</d:PackageHash>
            <d:PackageHashAlgorithm>SHA512</d:PackageHashAlgorithm>
            <d:PackageSize m:type="Edm.Int64">179537</d:PackageSize>
      

      Original:

      <d:PackageHash>+UEMZXby0QvVYVh8yHen2Qm5cX/yr2lP6qNWhxhacJIQWUo+5p5Vb6ToRrxjukcZmPuoVhwKMBdyNGNDWXFiDA==</d:PackageHash>
            <d:PackageHashAlgorithm>SHA512</d:PackageHashAlgorithm>
            <d:PackageSize m:type="Edm.Int64">179605</d:PackageSize>
      

      Note the differences for <d:Dependencies> has already been reported as NEXUS-6158 since that is a more critical item.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              plynch Peter Lynch
              Last Updated By:
              Peter Lynch Peter Lynch
              Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Date of First Response:

                  tigCommentSecurity.panel-title