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

Repository "modifiedBy" and "createdBy" fields are missing after an import

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: 4.5.1
    • Fix Version/s: 4.16.0
    • Component/s: Import/export
    • Labels:
      None
    • Sprint:
      Leap 3

      Description

      After creating a repository, deploying something in a folder in it, if we click the folder name, we can see ?Deployed by:? field in the info part of the UI.

      In the same time, if we give the following API call, we get the following json file (as expected):

      http://10.104.1.5/artifactory/api/storage/test-repo/test-folder

       
      output:
      {
        "repo" : "test-repo",
        "path" : "/test-folder",
        "created" : "2015-12-18T14:50:48.841Z",
        "createdBy" : "admin",
        "lastModified" : "2015-12-18T14:50:48.841Z",
        "modifiedBy" : "admin",
        "lastUpdated" : "2015-12-18T14:50:48.841Z",
        "children" : [ {
          "uri" : "/test-manifest.json",
          "folder" : false
        } ],
        "uri" : "http://10.104.1.5/artifactory/api/storage/test-repo/test-folder"
      }
       

      In order to reproduce the issue,we need to export the test-repo, delete its content and import the exported test-repo (or any other repo).

      After importing test-repo back, the ?Deployed By:? field Is missing from UI.

      And the API call is missing the "modifiedBy" and "createdBy" fields we previously had:

      http://10.104.1.5/artifactory/api/storage/test-repo/test-folder

      returns the following output:

      {
        "repo" : "test-repo",
        "path" : "/test-folder",
        "created" : "2015-12-18T14:11:14.935Z",
        "lastModified" : "2015-12-18T14:11:14.935Z",
        "lastUpdated" : "2015-12-18T14:11:14.935Z",
        "children" : [ {
          "uri" : "/test-manifest.json",
          "folder" : false
        } ],
        "uri" : "http://10.104.1.5/artifactory/api/storage/test-repo/test-folder"
      }
        

      Current workaround:

      Creating the folders we need in a repository (like test-folder in this case), and the fields "modifiedBy" and "createdBy", are there.
      Once we have created the folder, we can import the repository to populate it with artifacts, and those fields are kept as expected.

        Attachments

          Activity

            People

            • Assignee:
              inbart Inbar Tal
              Reporter:
              guyco Guy Cohen
              Assigned QA:
              Yogev Abergel (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: