ipfs / ipfs/kubo

Validate sharded directory structure in `ipfs ls`

Open
#8,196 2 comments 0 reactions 0 assignees View on GitHub
kind/bug need/triage
Dominant language
Go
Stars
17.1k
Forks
3.2k
Avg merge
3d 18h
Merged PRs (30d)
11

Description

Currently, when `ipfs ls` lists a sharded directory, it naively walks the dag without actually validating the internal structure. This means `ipfs ls /ipfs/QmFoo` might list some file named "bar", and `ipfs get /ipfs/QmFoo/bar` might then fail (because the directory was malformed).

We _should_ be validating this structure as we traverse it.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.