Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 11770489cc055863fa772eb5cf596d2b64be1b1107e5b1bb83f79a09cbfb394e
Ticket: d22637ba8ca9695ee22cbe431e63a20ac0b891ac
zipfs allows writing to files in the mounted zipfile but does not save to disk
User & Date: apnadkarni on 2023-09-06 16:28:29
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-markdown"
  4. comment changed to:
    Existing files in a mounted zipfs system can be written to and correctly read back within the same process while the zip file is still mounted. However, the modified file is not actually written to disk so when the zipfs file is unmounted (or program exits) the changes are lost. Not sure if this is by design or not but it is very misleading and should be fixed.
    
    On the other hand creation of new files is not permitted as currently implemented.
    
    My suggestion is to make the zipfs file mounts read-only and not allow modification. 
    
    The alternative, saving the new zip content to disk is not a feasible goal for the current release, imo.
    
    TIP 430 does not say anything on this topic of whether the file system is writable but being able to write to existing files but not new ones is neither here nor there.
    
  5. foundin changed to: "8.7"
  6. is_private changed to: "0"
  7. login: "apnadkarni"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "9546e9877f1a8899e25a89082561ee694e7fb402"
  10. resolution changed to: "None"
  11. severity changed to: "Important"
  12. status changed to: "Open"
  13. submitter changed to: "apnadkarni"
  14. subsystem changed to: "- New Builtin Commands"
  15. title changed to:
    zipfs allows writing to files in the mounted zipfile but does not save to disk
    
  16. type changed to: "Bug"