Bug
Auto commit off: deleting file before commit
Issue description
Due to the changes with auto commit off, the file can only be deleted after it is archived, which happens not immediately when auto commit is off. This caused problems in production.
Developer comments
The code look like this (almost), autocommit off:
[%$filename = "/tmp/hoho";
$file = Tobject::make_File($filename);
unlink($filename);
// Was actually implicit, but for clarity:
Tobject::commit();%]
The file to be archived is now copied and brought under control of Topincs. So the subsequent remove is irrelevant.
|
Work sessions
Start |
2023-04-15T08:42:20
|
End |
2023-04-15T11:30:47
|
Participant |
Robert Cerny
|
|
We are sorry
This page cannot be displayed in your browser. Use Firefox, Opera, Safari, or Chrome instead.