cismet / cids-server-rest

1 stars 0 forks source link

FileSystemActionCore using the time in ms as key can lead to conflicts. #55

Closed dameiers closed 9 years ago

dameiers commented 9 years ago

When creating multiple ActionsTasks in parallell, it can happen, that the time in milliseconds is not a unique id. This leads to two ActionTasks which override their files each other.

A simple workaround for this issue is, to check if there is already a file / folder with the same id, after the id was created. In that case, append a large random number to the key to make it unique.