Incorrect file attached to work object
Incorrect file is attached to the work object. Uploaded files are first saved to common hard drive disk (HDD) and then read into memory. The file on HDD is deleted after it is read into memory. When two processes with the same file name run simultaneously, they conflict and the first file is overwritten by the second file.
Steps to Reproduce
- Attach a file text.txt to work object with content A.
- Before the above process completes, attach a file text.txt with content B to another work object with another user's credentials. The file uploaded by second user (file content B) will get attached to work object of the first user.
The issue occurs when multiple sessions upload the same file. Since the file is created on server file system, there are possibilities of uploading files with same name.
Published September 7, 2016 - Updated September 14, 2016