zenhack/sandstorm-filesystem

can't see below top directory

Opened this issue · 1 comments

dckc commented

Steps to reproduce:

  1. make a filesystem grain FS1
  2. make an uploader; use it to upload bob.zip to FS1
  3. make a viewer; attach it to FS1
  4. browse. see Bob France
  5. follow Bob France link

expected results: something like this:

$ unzip -l bob.zip 
Archive:  bob.zip
  Length      Date    Time    Name
---------  ---------- -----   ----
        0  2017-09-04 21:06   Bob France/
       29  2017-09-04 21:06   Bob France/b
       29  2017-09-04 21:06   Bob France/c
       29  2017-09-04 21:06   Bob France/a
---------                     -------
       87                     4 files

actual results: blank page

So I narrowed this down a fair bit; I think the problem is somewhere in our processing of the zip file itself, which is unsurprising; I didn't really take the time to sit down and understand how the zip file format worked, and how that mapped to the library I was using, so I'm sure it's broken in many, many ways. The right way to fix this wold be to sit down with a spec and figure out what it's actually supposed to do.

The viewer is fine -- downloading a backup of the local fs reveals that those files really aren't there.