If Artifactory has a non-local filestore system (Such as NFS), as well as a local cache for the _pre folder, losing connection to the non-local filestore causes incorrect success messages to be sent on deployment.
Steps to reproduce:
- On a regular Artifactory installation, disable write access on the 2 character subfolders within the standard $ARTIFACTORY_HOME/data/filestore directory. This must be done for the uploaded file's folder.
chmod 000 9c
- Deploy a file to Artifactory as normal
curl -uadmin:password -T foo.txt http://localhost:8081/artifactory/testRepo
- Observe the "201 created" message, and note the filestore is still empty:
ls -R filestore/
7d 9c _pre