maidsafe-archive / safe_examples

examples showcasing various features of the SAFE Network
BSD 3-Clause "New" or "Revised" License
82 stars 50 forks source link

WHM 0.4.4 - creates unnecessary entries in _publicNames for subdirectories #372

Open happybeing opened 6 years ago

happybeing commented 6 years ago

On a new alpha2 account I used WHM to create one public name with service 'www', and then upload files to it including some subdirectories which were uploaded individually.

Listing the entries in my _publicNames MD (see the listing below) there are entries not just for the root, but also two of its subfolders. Other subfolders were uploaded with the root directory and don't appear - which is what I would expect.

So the bug seems to be that if you upload individual subdirectories, WHM creates superfluous entries for each one (though I have not gone back and tested this).

safe:test listContainer(_publicNames)... +0ms
 safe:test _publicNames ----------- start ---------------- +1ms
 safe:test Key            :  +5ms _public/solidpoc5/root-www
 safe:test Value            : +1ms <a byte buffer value>
 safe:test Version:  +1ms 0
 safe:test Key            :  +1ms _public/solidpoc5/root-www/app
 safe:test Value            : +1ms <a byte buffer value>
 safe:test Version:  +1ms 0
 safe:test Key            :  +1ms _public/solidpoc5/root-www/js
 safe:test Value            : +1ms <a byte buffer value>
 safe:test Version:  +1ms 0