This repository has been archived by the owner on Feb 12, 2024. It is now read-only.
ipfs.files.add with {cidVersion: 1} returns CID of an empty file #1518
Labels
exp/expert
Having worked on the specific codebase is important
help wanted
Seeking public contribution on this issue
kind/bug
A bug in existing code (including security flaws)
P1
High: Likely tackled by core team if no one steps up
Type: Bug
Severity: High
Description:
For some inputs
ipfs.files.add
with{cidVersion: 1}
returns a CIDv1 of an empty file, instead of CID for the actual input buffer.The problem does not occur if
{cidVersion: 0}
is used.Steps to reproduce the error:
I attach test case that illustrates the issue: js-ipfs-add-cidv1-bug-repro.zip
To run it:
yarn && yarn test
(ornpm install && npm test
)The text was updated successfully, but these errors were encountered: