HelloZeroNet / HelloZeroNet/ZeroNet

invalid config on update of website

Đang mở
#2,028 2 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
JavaScript
Star
18.8k
Fork
2.3k
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Hướng nghiên cứu

Bắt đầu từ dòng 231 của config.py và theo dõi cách file manager processor sử dụng giả định 10MB khi content.json bị thiếu hoặc đang được tạo lại. Xem lại cấu hình liên quan trong các tệp Python được đề cập và đường dẫn cập nhật content.json. Hoàn thành có nghĩa là các site hiện có có thể được quét lại sau khi nội dung bị xóa hoặc khi sử dụng dịch vụ lưu trữ bên ngoài, mà không bị coi là không tồn tại hoặc bị từ chối chỉ vì giới hạn kích thước mặc định.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
python
Lĩnh vực
backend
Loại issue
Lỗi
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
25/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.