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
Describe the bug
Opening a corrupted document lock the file.
To Reproduce
Steps to reproduce the behavior:
Simulate a corrupted file (simply create a txt file with content in it and change the extension to .docx)
Try opening the file with WordProcessingDocument.Open(...)
Observed behavior
The method WordProcessingDocument.Open(...) throws an exception, stating that the file is corrupted but keeps the file locked to. This can be verified using tools like "File Locksmith."
Expected behavior
Continue throwing the exception but release the file before.
Desktop
OS: Windows 11
.NET Target: .NET Framework 4.8
DocumentFormat.OpenXml Version: 3.0.1
Thanks.
The text was updated successfully, but these errors were encountered:
BenjaminLopVic
changed the title
Bug with corrupted Open XML documents
Bug with opening corrupted Open XML documents
Feb 28, 2024
Describe the bug
Opening a corrupted document lock the file.
To Reproduce
Steps to reproduce the behavior:
Observed behavior
The method WordProcessingDocument.Open(...) throws an exception, stating that the file is corrupted but keeps the file locked to. This can be verified using tools like "File Locksmith."
Expected behavior
Continue throwing the exception but release the file before.
Desktop
Thanks.
The text was updated successfully, but these errors were encountered: