ipfs pin add does mis-inteprets raw base64 CIDs #7739
Labels
kind/bug
A bug in existing code (including security flaws)
need/triage
Needs initial labeling and prioritization
Description:
The cid of the welcome-directory expressed in base64 is
mAXASIB57vcD6ZYQ/tYlAHE70HNp1AguaAHUkeFDiIrnsbzRj
This CID, while valid, is interpreted as a path on the cli:
For contrast:
Why is this important / not purely academic?
The default payload-cid (the root CID of the stored DAG) encoding in filecoin is base64, which contains
/
in its character set: https://github.com/filecoin-project/go-fil-markets/blob/v1.0.0/storagemarket/impl/clientutils/clientutils.go#L70cc @lidel
The text was updated successfully, but these errors were encountered: