ARTIFACTORY: How to overcome the “Invalid Import Directory” error
In this Knowledge Base article, we will be discussing the reason behind the error that occurs while importing or exporting data in/from the Artifactory server while performing Import-export.The “Invalid Export/Import Directory” error can be thrown if the export/import path is an “Insecure Path”. An insecure path can be, for example, a path to an NFS server or a shared drive. As a result, Artifactory restricts the import/export operation against such paths by default for security reasons.
This policy, however, can be controlled and modified by adding the following system property and setting it to “true” in the artifactory.system.properties file.
artifactory.allow.export.import.insecure.paths=true
Note: A restart of Artifactory is needed to have the changes in effect.
After the above property is added, the error will not occur anymore, and we can perform import and export.
For more information on imports and exports, you can refer to the below articles.