Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ipfs resolve isn't behaving well #5703

Closed
Stebalien opened this issue Oct 30, 2018 · 1 comment · Fixed by #5704
Closed

ipfs resolve isn't behaving well #5703

Stebalien opened this issue Oct 30, 2018 · 1 comment · Fixed by #5704
Assignees

Comments

@Stebalien
Copy link
Member

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.

@Stebalien
Copy link
Member Author

Stebalien added a commit that referenced this issue Oct 30, 2018
…mand

fixes #5703

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
@ghost ghost assigned Stebalien Oct 30, 2018
@ghost ghost added the status/in-progress In progress label Oct 30, 2018
Stebalien added a commit that referenced this issue Nov 13, 2018
…mand

fixes #5703

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
Stebalien added a commit that referenced this issue Jan 23, 2019
…mand

fixes #5703

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
Stebalien added a commit that referenced this issue Jan 23, 2019
…mand

fixes #5703

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
Stebalien added a commit that referenced this issue Jan 23, 2019
…mand

fixes #5703

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
Stebalien added a commit that referenced this issue Feb 19, 2019
…mand

fixes #5703

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
Stebalien added a commit that referenced this issue Feb 19, 2019
…mand

fixes #5703

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
@ghost ghost removed the status/in-progress In progress label Feb 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant