You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue
If the 'poifiles' folder is deleted after an SXSSFWorkbook has been created, creating another in the same process will fail
Since the dir reference of CreateTempFile is static and the temp file is created in the temp folder, there is no guarantee that the path will continue to be valid, as a clean up job may be running once in a while on the temp folder and delete the poifiles directory
Proposed Solution:
Remove static dir variable and always call CreateDirectory as it will create the directory or just return the path if it already exists
I can provide a PR with the fix if you agree on the solution
Steps to reproduce:
Create an SXSSFWorkbook and register a sheet
Save the workbook
Delete the C:\Users\myUser\Local\Temp\poifiles folder manually
Create another SXSSFWorkbook and register a sheet
This has to happen in the same process
The text was updated successfully, but these errors were encountered:
Bykiev
added a commit
to Bykiev/npoi
that referenced
this issue
Jul 27, 2023
Issue
If the 'poifiles' folder is deleted after an SXSSFWorkbook has been created, creating another in the same process will fail
Since the dir reference of CreateTempFile is static and the temp file is created in the temp folder, there is no guarantee that the path will continue to be valid, as a clean up job may be running once in a while on the temp folder and delete the poifiles directory
Proposed Solution:
Remove static dir variable and always call CreateDirectory as it will create the directory or just return the path if it already exists
I can provide a PR with the fix if you agree on the solution
Steps to reproduce:
The text was updated successfully, but these errors were encountered: