ZeroNetX / ZeroNet

ZeroNetX - Decentralized websites using Bitcoin crypto and BitTorrent network
https://zeronet.dev
Other
224 stars 32 forks source link

NgnoidTV files data not deleted from content.json when user deleting the file from zite #217

Open mx5kevin opened 1 year ago

mx5kevin commented 1 year ago

Step 1: Please describe your environment

Step 2: Describe the problem:

Test in Ngnoid.tv upload a file. The site interface can not delete the files from the client and files_optional row the file data are not deleted too. This line in the content.json file only deleted if before deleted the file in the ZeroNet client, than in the site interface.

The data of the deleted files remains, which confuses the download system if download all optional files from the zite are enable. Example the downloading from the zite are stuck.

Steps to reproduce:

  1. Open content.json Upload a file to Ngnoid.tv and delete it.
  2. If the file are not deleted before in the ZeroNet client interface the program are can not delete the deleted file data files_optional line in the content.json line.

Observed Results:

Deleted files data collected in the content.json. The site can not delete video the file too. The same problem in all Kopy Kate clones on ZeroNet. ZeroUp clones are working perfectly they are deleting the file, and the lines too in content.json! Only clones with this faulty code are available on the entire network.

Expected Results:

When the file are Pinned and if the user delete the file, delete the program from the files_optional line the file data and the video file too. In ZeroUp and ZeroUp clones the function are working perfectly.