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

Nuget OData calls return corrupted entries

    Details

    • Type: Bug
    • Status: Open
    • Priority: Medium
    • Resolution: Unresolved
    • Affects Version/s: 3.39.0
    • Fix Version/s: None
    • Component/s: NuGet
    • Labels:
      None
    • Environment:
      Linux artifacts 5.11.22-5-pve #1 SMP PVE 5.11.22-10 (Tue, 28 Sep 2021 08:15:41 +0200) x86_64 x86_64 x86_64 GNU/Linux

      $ rpm -qa |fgrep nexus
      nexus-repository-manager-3.39.0_01-1.el7.noarch

      Description

      We have a script that regularly checks the list of Nuget packages in a repository, we do that by retrieving the information from: http://localhost:1080/repository/nugets-public/Packages()?$orderby=Version&semVerLevel=2.0.0

      But since the v3 files were generated (v3/registration/whatever/index.json), the information retrieved by our script from the XML seems corrupted, see below an excerpt of it:

       

       

      <entry>
       <id>http://localhost:1080/repository/nugets-public/Packages(Id='${id}',Version='${version}')</id>
       <title type="text" m:null="true"></title>
       <summary type="text" m:null="true"></summary>
       <updated m:null="true"></updated>
       <author>
       <name m:null="true"></name>
       </author>
       <link rel="edit-media" title="V2FeedPackage" href="Packages(Id='${id}',Version='${version}')/$value" />
       <link rel="edit" title="V2FeedPackage" href="Packages(Id='${id}',Version='${version}')" />
       <category term="NuGetGallery.V2FeedPackage" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme" />
       <content type="application/zip" src="http://localhost:1080/repository/nugets-public/${id}/${version}" /> 
      

       

      It seems the ${id} and ${version} are not expanded and our suspicion is that Nexus is trying to produce XML entries for the .JSON files in the v3 directory and since it can't get the package name and version, it just shows the variables.

       

       

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            tuxillo Antonio Huete
            Last Updated By:
            Antonio Huete Antonio Huete
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Date of First Response:

                tigCommentSecurity.panel-title