#25 TAbZipKit.ExtractToStream() after .Move() results in duplicate filename.

Duplicate
open
nobody
None
5
2013-07-04
2013-07-04
Barry Staes
No

I have found that calling TAbZipKit.ExtractToStream() after TAbZipKit.Move() results in duplicate filename.

So the same filename exists twice in the archive:
- once with original moved data.
- once with new data from the ExtractToStream() stream parameter.

The attached console code demonstrates this:
- It creates a test.zip that contains 'file-a-old.txt'.
- It now opens this file, and appends data using ExtractToStream() and AddFromStream(). Ok so far.
- It now renames this file. Ok so far.
- It now opens this file, and appends data again. This results in duplicate filenames.

(mentioned in this [a02d9dc10] discussion)
(and SF text formatting seems to be broken?)

1 Attachments

Discussion

  • Barry Staes
    Barry Staes
    2013-07-04

    Sorry i got confused with all those browser tabs open, this bug of course belongs with TPAbbrevia and will be added there as soon as the bugs Create button is enabled again. (!)