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

Artifactory should prevent syncing the swp files to the Config tables

    Details

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

      Description

      Artifactory from version 5 stores the plugins in the configs table. However, Artifactory shouldn't store files like swp (the vim creates: .test.groovy.swp). If this file is stored and Artifactory then restarted once this file still presented, you cannot delete this file from the filesystem since the removal will bring it from the database upon restarting:

      Steps to reproduce:

      1. Create a user plugin test.groovy
      2. Open using vim - this will create a swp file .test.groovy.swp
      3. This file is being also written to the database:

      2017-11-05 12:55:22,854 [Thread-4] [INFO ] (o.a.c.c.ConfigurationManagerImpl:364) - [Node ID: aaec832c081bf129:2ace92a8:15f8bd0b651:-8000] detected local modify for config 'artifactory.plugin..test.groovy.swp'
      

      4. Shut down Artifactory.
      5. Close the user plugin so the swp file will be removed.
      6. Start Artifactory again. This file is being synced from the database again.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              alexeiv Alexei Vainshtein
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: