Home › Forums › .NET libraries › Xceed Zip & Real-Time Zip for .NET › When protecting with AES, Xceed ZIP throws FileSystemInternalException: An update in place did not write the expected number of bytes.
User (Old forums)MemberOctober 29, 2012 at 3:19 pmPost count: 23064
Is this a known issue? Is there any fix? I only see this when using AES128 encryption.
An update in place did not write the expected number of bytes.
Xceed.Utils.Storage.StorageItem.WriteHeader(Stream dest, Int64 size)
Xceed.Utils.Storage.Storage.UpdateItems(FileSystemEventsSession session, Stream
Xceed.Zip.ZipStorage.UpdateItems(FileSystemEventsSession session, Stream
Xceed.Zip.ZipArchive.EndUpdate(FileSystemEvents events, Object userData)
Fiddler.frmViewer.actSaveSessionArchive(String sFilename, String sPassword,
Session arrSessions) in C:\src\Fiddler2\Viewer.cs:line 5059
Imported from legacy forums. Posted by Eric (had 1794 views)User (Old forums)MemberOctober 29, 2012 at 3:44 pmPost count: 23064
Further troubleshooting shows that this bug may be easily reproduced. Just try to write any empty file to an AES-encrypted archive and you’ll hit this.
ZippedFile o = new ZippedFile(odfZip, sResponseFilename);
using (Stream oS = o.CreateWrite(FileShare.None))
// Uncomment the following two lines to write a single byte and avoid the exception
// byte arrOne = new byte;
// oS.Write(arrOne, 0, 1);
// Note, simply calling .Write with no payload does NOT prevent the exception.
// byte arrNone = new byte;
// oS.Write(arrNone, 0, 0);
Notably, it appears that if you add a comment to the individual item, the exception goes away.
Imported from legacy forums. Posted by Eric (had 491 views)Diane [Xceed]ModeratorNovember 21, 2012 at 3:58 pmPost count: 1353
I apologize for the delay.
We were able to reproduce the issue and a fix request has been assigned to the developer.
He says that he should be able to provide a beta build with this fix quickly. You can keep an eye on the following forum post to stay informed of the latest notes and any beta builds available for Xceed Zip for .NET:
Imported from legacy forums. Posted by Diane [Xceed] (had 395 views)Diane [Xceed]ModeratorNovember 29, 2012 at 1:33 pmPost count: 1353
I have received an update from the developer. A new beta build that includes this fix is now available in the thread I mentioned in my previous post.
Imported from legacy forums. Posted by Diane [Xceed] (had 314 views)User (Old forums)MemberNovember 30, 2012 at 2:57 pmPost count: 23064
Thanks, Diane! I’ll be sure to grab that in a few days after we renew our subscription.
Imported from legacy forums. Posted by Eric (had 666 views)Diane [Xceed]ModeratorJanuary 15, 2013 at 2:34 pmPost count: 1353
The fix for this issue is now included in the latest official version, which can be downloaded in our Updates Center
Fixed a bug where empty AES-encrypted files added to a new archive caused a FileSystemInternalException to be thrown.
Imported from legacy forums. Posted by Diane [Xceed] (had 1390 views)
- You must be logged in to reply to this topic.