-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Eliminate Kernel::System::FileTemp #545
Comments
I don't know every way otobo is set up on systems. If someone wants to give minimal access to the otobo-user, or just have all otobo-files in one place for a better overview, or maybe disk space limitations, it's not a bad thing to be able to, in my opinion. |
Reading the documentation of File::Temp I find that this is trickier than expected, and I agree that keeping Kernel::System::FileTemp might be useful. Thomas Fahle tells it like it is in https://perl-howto.github.io/2008/07/temporare-dateien-sicher-erzeugen.html:
So I propose to keep this issue open, until we find the best solution. |
enhance code comments more meaningful variable names
…FileTemp Issue #545: use the already open file handle
There was an inconstent usage of the file handle returned from Kernel::System::FileTemp::TempFile(). The applied PR aligns the usage in Kernel/Modules/AgentTicketAttachments.pm with the saner usage Kernel/System/Crypt/PGP.pm, A test with the formatter wc -l gave the expected result. |
I see no benefits of this module over using
File::Temp
directly. It does set up a non-standard location for temporary dirs. But I don't think that this is a benefit.The text was updated successfully, but these errors were encountered: