Skip to content

ipfs resolve isn't behaving well #5703

@Stebalien

Description

@Stebalien

From the interface-ipfs-core tests,

CID=$(ipfs dag put <<<'{"path": {"to": {"file": "asdfasdfasdf"}}}')
ipfs resolve /ipfs/$CID/path/to/file

should fail with "found non-link at given path".

Currently, it returns /ipfs/$CID.

Really, it should fail with "not a valid unixfs file". However, if we replace /ipfs with /ipld, it still returns the same result. In that case, it should probably just return the entire path (IMO, it shouldn't error).

However, neither of these fixes will make the JS tests pass.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions