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

NuGet V3 deserialization error when installing FSharp.Plotly package

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Deferred
    • Affects Version/s: 6.20.0, 6.21.0, 6.23.1, 7.10.2, 7.10.5
    • Fix Version/s: None
    • Component/s: NuGet
    • Labels:
      None
    • Severity:
      High

      Description

      Problem Description:
      Installing the FSharp.Plotly Nuget package using the NuGet V3 protocol fails with deserialization errors.

      Expected Behaviour:
      When using the NuGet V3 protocol, it will use the registration-semver2 endpoint and deserialise the index.json and the package to be resolved

      Tried to perform a NuGet install for Stylecop.Analyzers package which also uses registration-semver2 and could install the package
      $ nuget install Stylecop.Analyzers -Source ArtifactoryNuGetV3

      Actual Problem
      This error reported is observed only on FSharp.Plotly package, as the index.json file is having the licenseurl with special characters

      Error in artifactory.log:
      2020-11-07T17:37:33.138Z [jfrt ] [ERROR] [4ace15b9092506e ] [etV3VirtualAndRemoteCommon:150] [http-nio-8081-exec-9] - Failed to parse registration for repo: nuget-remote, packageId: fsharp.plotly
      org.jfrog.common.JsonParsingException: com.fasterxml.jackson.databind.exc.InvalidFormatException: Cannot deserialize value of type `java.net.URI` from String "https://github.com/Timo Mühlhaus/FSharp.Plotly": not a valid textual representation, problem: Illegal character in path at index 23: https://github.com/Timo Mühlhaus/FSharp.Plotly

      request.log:

      2020-11-07T17:37:33.141Z|4ace15b9092506e|RESTRICTED_IP|admin|GET|/api/nuget/v3/nuget/registration-semver2/fsharp.plotly/index.json|404|-1|0|519|NuGet Command Line/5.6.0 (Unix 19.6.0.0)
      **

      Steps to reproduce:
      Step 1: clear the local cache $ nuget locals -clear all
      Ste2 2: use the below sample Nuget.config file in the nuget client

      Nuget.config:
      RESTRICTED_TOKENS

       

      Step 3: Install the FSharp.Plotly using V3 feed using below command
      $ nuget install FSharp.Plotly -Source ArtifactoryNuGetV3

      Tested versions:

      7.10.5, 7.10.2, 6.23.1, 6.20.0, 6.21.0

        Attachments

          Issue Links

            Activity

                People

                Assignee:
                Unassigned
                Reporter:
                vigneshs Vignesh S
                Votes:
                1 Vote for this issue
                Watchers:
                3 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    Sync Status

                    Connection: RTFACT Sync
                    RTMID-23903 -
                    SYNCHRONIZED
                    • Last Sync Date: