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

Percent sign '%' does not encoded right in AQL

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Deferred
    • Affects Version/s: 7.17.11
    • Fix Version/s: None
    • Component/s: AQL
    • Labels:
      None
    • Severity:
      High

      Description

      Can't use encoding in AQL path component. I tried to download an artifact that included a slash `/` in its parent directory name. The slash encoded to %2F, but Artifactory does not accept `%` in AQLs.

      This issue happened on https://ecosysjfrog.jfrog.io.

      Steps to reproduce:

       

      1. Create a build with the following build name: "build/slash":
        1. jfrog rt bce "build/slash" 1
        2. jfrog rt bp "build/slash" 1
      2. Try to search the build Artifact using AQL:
      items.find({
        "repo":"artifactory-build-info",
        "path":{"$match":"build%2Fslash"}}
      ).include("name","repo","path")
      

      Expected behavior:

      The build artifact returns in the AQL.

      Actual behavior:

      The AQL returned an empty result.

      Workaround:

      Replace `%` with `?`:

      items.find({
       "repo":"artifactory-build-info",
       "path":{"$match":"build?2Fslash"}}
      ).include("name","repo","path")
      

        Attachments

          Activity

              People

              Assignee:
              Unassigned
              Reporter:
              yahavi Yahav Itzhak
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Sync Status

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