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

Path pattern not recongnizing RPM file name elements

    Details

    • Type: Bug
    • Status: Open
    • Priority: Normal
    • Resolution: Unresolved
    • Affects Version/s: 5.6.3
    • Fix Version/s: None
    • Component/s: Repo Layout
    • Labels:
      None

      Description

      I have created an Repository layout with the following path pattern:

      [org]/[CentOS_version<[0-9.]+>]/[Channel<app|configs|deps>]/Packages/[module]-[baseRev](-[patchLevel<[.~0-9a-zA-Z]+>])(-[fileItegRev])(.[archTag<\w+>]).[ext]
      

      when I Test Artifact Path Resolution using the following test path:

      MyOrg/7/app/Packages/app-appliance-1.0.2-latest-JIRA-12315.x86_64.rpm
      

      Artifactory does not match the elements and gives the following match:

      Organization: MyOrg 
      Module: app-appliance-1.0.2-latest-JIRA 
      Base Revision: 12315 
      Folder Integration Revision: 
      File Integration Revision: 
      Classifier: 
      Extension: rpm 
      Type: 
      CentOS_version: 7 
      Channel: app 
      patchLevel: 
      archTag: x86_64
      

      When using this regular expression:

      (\w+)\/([0-9]+)\/(app|configs|deps)\/(Packages)\/([\w-.]+)-([0-9.]+)-([\w~]*)-([\w-]+).(\w+).(\w+)
      

      on the online tool https://regex101.com I get a group match for each element.

      I'm not sure what's the difference in implementation in Artifactory, or if this is a resolved bug in a later version of Artifactory.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              obogdan Ovidiu-Florin BOGDAN
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: