login about faq

CkZipEntry::ReplaceString() returns true but the zip file entry is missing from the zip file afterwards. This worked fine in 9.4.0 before upgrading to 9.4.1 SP1.

Code to reproduce:

shared_ptr<CkZipEntry> zipentry(zip.GetEntryByName(_T("docProps/custom.xml")));
CString csXml(zipentry->unzipToString(0, _T("utf-8")));
zipentry->ReplaceString((LPCTSTR)csXml, _T("utf-8"));


    DllDate: Aug 16 2013
    UnlockPrefix: xxxx
    Username: xxxx
    Architecture: Little Endian; 32-bit
    Language: Visual C++ 11.0
    VerboseLogging: 1
    targetZipPath: D:\LAN test\010208.433.docx
    openedZipPath: D:\LAN test\010208.433.docx
    File already exists at target zip path.
    Will first write to temp file, then if successful,
    will delete existing zip and move new zip into its place.
    tempDir_ifNeeded: C:\Users\xxxx\AppData\Local\Temp\xxxx\Docx\
    tempZipPath: C:\Users\xxxx\AppData\Local\Temp\xxxx\Docx\ckz_OA6G.tmp
      oemCodePage: 850
      encryption: 0
      passwordProtected: 0
      totalSize64: 143368
      numEntries: 24
        Zip entry has null filename.
      Writing central directory...
      numCentralDirRecords: 23
      Finished writing zip
      Moving just-created temp zip to target...
      tempZipPath: C:\Users\xxxx\AppData\Local\Temp\xxxx\Docx\ckz_OA6G.tmp
      targetZipPath: D:\LAN test\010208.433.docx
      A file already exists at the target path.  Deleting...
      Already-existing target zip deleted.
      Moving temp zip to target zip...
      Successfully moved temp zip to target zip.

asked Aug 23 '13 at 10:04

roan98dk's gravatar image


What strikes me is that the ChilkatLog says "Zip entry has null filename."

(Aug 23 '13 at 10:05) roan98dk

Thanks! I'm working on the problem.


answered Aug 23 '13 at 11:44

chilkat's gravatar image

chilkat ♦♦

The problem should be fixed. Here are new VC++ 11.0 builds with the fix:

64-bit: http://www.chilkatsoft.com/preRelease/chilkat-9.4.1-x86_64-vc11.zip

32-bit: http://www.chilkatsoft.com/preRelease/chilkat-9.4.1-x86-vc11.zip


answered Aug 23 '13 at 12:36

chilkat's gravatar image

chilkat ♦♦

Are these stable enough for production use?

P.S. I used the v110_xp builds...

(Aug 23 '13 at 15:03) roan98dk

Yes, they are stable enough for production use. I'll do the v110_xp builds later today and upload..

(Aug 26 '13 at 08:49) chilkat ♦♦

answered Aug 27 '13 at 09:03

chilkat's gravatar image

chilkat ♦♦

Thanks, but when will this be included in an official release?

(Aug 27 '13 at 09:07) roan98dk

Not for a while. v9.4.1 was just released, so these could be considered the same as v9.4.1 but with a patch applied. The Version property indicates the sub-version (such as v9.4.1.42).

(Aug 27 '13 at 15:10) chilkat ♦♦

What I meant is that, what if others have the same or related problems. How would the know that a patch is available if it is not posted on the release page?

(Aug 27 '13 at 15:21) roan98dk

Yes, I understand. The Chilkat blog has a pre-release category here:


It may always be a few fixes behind, mainly because I'm not going to post the fix until it's been thoroughly tested.

The v9.4.1 SP1 release also lists many of the fixes http://www.cknotes.com/?p=487

It's impossible to produce pre-release builds for all supported programming languages, operating systems, etc. It would take too much time. Therefore, if a pre-release is needed, it can be build and supplied upon request. It will only be possible to provide a pre-release at the latest version.


answered Aug 27 '13 at 15:32

chilkat's gravatar image

chilkat ♦♦

A suggestion would be to add a "known bugs" section to the release notes for SP1 or make it very clear that there could be known bugs and that the pre-release blog should be checked before downloading the official release. By the way this bug fix is not listed as pre-release with version number yet.

(Aug 27 '13 at 15:51) roan98dk

I am also using the AutoXcrc property of CkFtp2. Is the latest bugfix included in the above-mentioned pre-releases?

(Aug 27 '13 at 15:52) roan98dk
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: Aug 23 '13 at 10:04

Seen: 1,953 times

Last updated: Aug 27 '13 at 15:52

powered by OSQA