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

Cannot handle metadata URL with illegal characters

    Details

    • Type: Bug
    • Status: Open
    • Priority: High
    • Resolution: Unresolved
    • Affects Version/s: 6.7.3
    • Fix Version/s: None
    • Component/s: NuGet
    • Labels:
    • Environment:

      Windows 2012

      Description

      When using NuGet Protocol version 3, Artifactory fails to restore/install a package where the metadata contains an invalid URL in this case space character. Inside the Artifactory you will see a JsonParsingException

      org.jfrog.common.JsonParsingException: com.fasterxml.jackson.databind.exc.InvalidFormatException: Cannot deserialize value of type `java.net.URI` from String "https://raw.githubusercontent.com/Microsoft/TestAdapterForGoogleTest/dev15/GoogleTestNuGet/license (MIT).txt": not a valid textual representation, problem: Illegal character in path at index 98: https://raw.githubusercontent.com/Microsoft/TestAdapterForGoogleTest/dev15/GoogleTestNuGet/license (MIT).txt
      at [Source: (String)"{"@id":"https://api.nuget.org/v3/registration3-gz-semver2/microsoft.googletest.v140.windesktop.msvcstl.static.rt-dyn/index.json","@type":["catalog:CatalogRoot","PackageRegistration","catalog:Permalink"],"commitId":"214cfea0-5622-450a-9f50-1f17e27d52cf","commitTimeStamp":"2019-03-25T22:43:44.717152Z","count":1,"items":[{"@id":"https://api.nuget.org/v3/registration3-gz-semver2/microsoft.googletest.v140.windesktop.msvcstl.static.rt-dyn/index.json#page/1.8.0/1.8.1","@type":"catalog:CatalogPage","com"[truncated 4543 chars]; line: 1, column: 3222] (through reference chain: org.jfrog.repomd.nugetv3.model.RegistrationResult["items"]->java.util.ArrayList[0]->org.jfrog.repomd.nugetv3.model.RegistrationResultItem["items"]->java.util.ArrayList[1]->org.jfrog.repomd.nugetv3.model.RegistrationResultPageItem["catalogEntry"]->org.jfrog.repomd.nugetv3.model.RegistrationResultCatalogEntry["licenseUrl"])
      at org.jfrog.common.MapperUtilsBase.unchecked(MapperUtilsBase.java:223)
      <add key="virtual" value="https://artifactory/api/nuget/v3/virtual-nuget" protocolVersion="3" />

      The package in question: https://www.nuget.org/packages/Microsoft.googletest.v140.windesktop.msvcstl.static.rt-dyn/1.8.1

      Please see the log here: https://gist.github.com/casz/7fd968460af8d3319a7693de8e40e196

      https://github.com/microsoft/TestAdapterForGoogleTest/issues/160

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              casz Joseph Petersen
            • Votes:
              3 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated: