You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When we upload files of with 16519168 < size < 16773119, (with encryption) or 67100000 without encryption, a hash is generated but there are unretrievable
These size generate a Data length of 0 in the metadata, crashing the retrieve process
suspected cause: According to our research, the problem comes from the function "hoistLevels" in hastrie.go, when the target level in the merkle tree is empty after a recursive wrap.
fix: A proposed quick fix is to launch this function again with the upper level
adding this at line 138 :
iftlen==0 {
returnh.hoistLevels(level+1)
}
The text was updated successfully, but these errors were encountered:
Summary
When we upload files of with 16519168 < size < 16773119, (with encryption) or 67100000 without encryption, a hash is generated but there are unretrievable
These size generate a Data length of 0 in the metadata, crashing the retrieve process
Steps to reproduce
truncate -s 16154k bee.jpg curl -F file=@bee.jpg -H "Swarm-Encrypt: true" http://localhost:1633/files
The size of problematic files can be calculated on how levels are filled
Expected behavior
Actual behavior
Extra
adding this at line 138 :
The text was updated successfully, but these errors were encountered: