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 name resolve --local errors with 'multihash too short' #2527

Closed
area opened this issue Apr 4, 2016 · 1 comment · Fixed by #2577
Closed

ipfs name resolve --local errors with 'multihash too short' #2527

area opened this issue Apr 4, 2016 · 1 comment · Fixed by #2577
Labels
exp/novice Someone with a little familiarity can pick up kind/bug A bug in existing code (including security flaws) topic/commands Topic commands

Comments

@area
Copy link

area commented Apr 4, 2016

I'm trying to use the feature documented #1834

ipfs name resolve <id> resolves (eventually) as normal, but ipfs name resolve --local <id> gives Error: multihash too short. must be > 3 bytes. Do I need some further setup to be able to use --local?

@whyrusleeping
Copy link
Member

huh. That does look like a bug... thanks for reporting!

@whyrusleeping whyrusleeping added kind/bug A bug in existing code (including security flaws) topic/commands Topic commands exp/novice Someone with a little familiarity can pick up labels Apr 5, 2016
pfista added a commit to pfista/go-ipfs that referenced this issue Apr 18, 2016
IPNS name was prepended with '/ipns/' too early causing a multihash error.
Instead, the resolvers should handle name manipulation rather than ipns.go

Fixes ipfs#2527

License: MIT
Signed-off-by: Mike Pfister <pfista@gmail.com>
pfista added a commit to pfista/go-ipfs that referenced this issue Apr 19, 2016
resolveOnce should remove '/ipns/' prefix before using multihash functions.

Fixes ipfs#2527

License: MIT
Signed-off-by: Mike Pfister <pfista@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
exp/novice Someone with a little familiarity can pick up kind/bug A bug in existing code (including security flaws) topic/commands Topic commands
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants