Zeronet: Signing fail if Thumbs.db exist

Created on 25 Jan 2017  路  4Comments  路  Source: HelloZeroNet/ZeroNet

If a user accesses their user content folder by Windows Explorer, Thumbs.db will be created. Then if site owner didn't add Thumbs.db to "ignore" node in content.json and only allow specified files, signing won't success.
The similar problems are in desktop.ini and .DS_Store.

Most helpful comment

Like .gitignore, simply include by default a RegEx in content.json to exclude these temporary files.

http://127.0.0.1:43110/Talk.ZeroNetwork.bit/content.json

"ignore": "((js|css)/(?!all.(js|css))|data/users/.*db|data/users/.*/.*|data/archived|.*.py)",

Here NoFish excluded all .py files from his site.

"ignore": "(([Dd]esktop\\.ini)|([Tt]humbs\\.db)|(\\.DS_Store))",

All 4 comments

Probably solution:

  • Ignore these files by default, whether site owner added these to "ignore" node. But we would loose the ability to add these files to sites.
  • Add a notice to Documentation.

Like .gitignore, simply include by default a RegEx in content.json to exclude these temporary files.

http://127.0.0.1:43110/Talk.ZeroNetwork.bit/content.json

"ignore": "((js|css)/(?!all.(js|css))|data/users/.*db|data/users/.*/.*|data/archived|.*.py)",

Here NoFish excluded all .py files from his site.

"ignore": "(([Dd]esktop\\.ini)|([Tt]humbs\\.db)|(\\.DS_Store))",

I also wonder what is the underlying reason for the failure. @l5h5t7 Could you please test this again in Rev 2009?

@MuxZeroNet Maybe it's because explorer is using this file so fopen fails.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

blurHY picture blurHY  路  3Comments

mkg20001 picture mkg20001  路  3Comments

sergei-bondarenko picture sergei-bondarenko  路  3Comments

imachug picture imachug  路  3Comments

blurHY picture blurHY  路  3Comments