HelloZeroNet / HelloZeroNet/ZeroNet

invalid config on update of website

Open
#2,028 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
18.8k
Forks
2.3k
PR merge metrics
No merged PRs in 30d

Description

line 231: config.py should NOT assume that sites without a content.json(which may being updated by owner- and need a re-scan) should be of a certain size- namely 10mb.
This may apply for new sites, but not existing ones. You cant change site data within the browser(cant point to webzite-not in owned list) if the content.json is being updated. Its as if zite doesnt exist, which is wrong.

10mb may not even be sane at this point- I need 65mb for my updated content. I took me a good min to track the setting down- which should be in the master config file, not across 5 python files. simply removing old content (files) doesnt work, they are still referenced(and hosted elsewhere)

The easier fix is to cull the site verify code in the file manager processor- but thats not the correct way of addressing the problem. That is sidestepping it.

most users will push updates and sync over and over- but in event of removal of data by owner- the content.json MUST be updated--and this is the only way to do it. Hack in the "changes for .bit domains and optional content" by yourself AFTER the json is recreated for the "loss of content".

why would u do this- several reasons.
1-save space
2-(my case) host content elsewhere

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.