We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 27708 MODX Staff
    • 2,502 Posts
    It has come up on a public thread that there is a problem with the current download of 0.9.6.1p2 zip.

    It seems that there is all these 0byte files with folder names in the folder and Vista chokes on them regardless of many various apps to extract.

    Wonder if this could be investigated and or cleaned and replaced.

    Cheers,

    Jay
      Author of zero books. Formerly of many strange things. Pairs well with meats. Conversations are magical experiences. He's dangerous around code but a markup magician. Blog ✦ Twitter ✦ LinkedIn ✦ GitHub
      • 7231
      • 4,205 Posts
      You can thank microsoft for this one: http://support.microsoft.com/kb/952249
      CAUSE
      This issue occurs in special .zip files. If the .zip file contains folder items that do not have the directory flag set in the external file attributes field, the computer treats the items as files that are 0 bytes. Therefore, the issue occurs.

      In Windows Vista SP1 and in Windows Server 2008, the computer parses files first. The 0-byte files are created before the folders. This behavior makes the extraction fail because the folder structure cannot be created.
        [font=Verdana]Shane Sponagle | [wiki] Snippet Call Anatomy | MODx Developer Blog | [nettuts] Working With a Content Management Framework: MODx

        Something is happening here, but you don't know what it is.
        Do you, Mr. Jones? - [bob dylan]
        • 3749
        • 24,544 Posts
        Quote from: dev_cw at Aug 07, 2008, 09:47 PM

        You can thank microsoft for this one: http://support.microsoft.com/kb/952249
        CAUSE
        This issue occurs in special .zip files. If the .zip file contains folder items that do not have the directory flag set in the external file attributes field, the computer treats the items as files that are 0 bytes. Therefore, the issue occurs.

        In Windows Vista SP1 and in Windows Server 2008, the computer parses files first. The 0-byte files are created before the folders. This behavior makes the extraction fail because the folder structure cannot be created.

        Good old Microsoft. "Special zip files" indeed. The best part is that installing Vista SP1 actually makes the problem worse!!

        Their explanation is also somewhat odd. First, you’d think that no decent OS would let you create a folder without a directory flag set and Vista is so paranoid that I’m sure it’s not about to let some program change the directory flag. Second, how does the zip process end up creating two separate objects from that one folder? Finally, MS gives you no direct way of setting the troublesome directory flag.

        I see there’s a hotfix available from MS, but it would probably be better to just sanitize the zip file.


          Did I help you? Buy me a beer
          Get my Book: MODX:The Official Guide
          MODX info for everyone: http://bobsguides.com/modx.html
          My MODX Extras
          Bob's Guides is now hosted at A2 MODX Hosting