-
Notifications
You must be signed in to change notification settings - Fork 1.2k
ipfs resolve
fails when dnslink points to another dnslink
#3692
Comments
Here js-ipfs/packages/ipfs-core/src/components/name/resolve.js Lines 67 to 71 in 00fd709
|
- make POST return a base32 encoded cidv1. - default to using cidv1 everywhere. - update to use the new ipfs-core module. base36 is the right thing to use to respect the max authority length for ipns:// scheme urls. The assumption is folks should use base32 for CIDs in ipfs:// scheme urls, and it's the default output for cidv1. The new ipfs-core modules has the same api as the `ipfs` module but doesn't include the cli and http-server code with it. At time of writing the tests pass apart from the last one, which hangs. I think it's due to an unrelated bug ipfs/js-ipfs#3692 License: MIT Signed-off-by: Oli Evans <oli@tableflip.io>
Ouch, |
I can PR a fix for this |
Weird, we have a core interface test for exactly this address js-ipfs/packages/interface-ipfs-core/src/miscellaneous/resolve.js Lines 78 to 84 in 00fd709
|
something more mysterious is happening here... the test passes, and the dns command does indeed handle recursive look ups by default
js-ipfs/packages/ipfs-core/src/runtime/dns-nodejs.js Lines 33 to 68 in 00fd709
|
the
|
the js-ipfs/packages/ipfs-cli/src/commands/resolve.js Lines 39 to 42 in 00fd709
|
ohhhh, the cli command is not recursive by default! js-ipfs/packages/ipfs-cli/src/commands/resolve.js Lines 10 to 19 in 00fd709
it probably should be. |
The error message where recursive is false but a dnslink points to another dnslink needs improving here |
Hm.. you are right. |
This is ready to be picked up by a JS triage tribute. |
@yusefnapora (note from JS triage) you may want to pick up this first, before anything else (P0) |
Note from triage:
|
This changes the default behaviour of the `jsipfs resolve` cli command to be recursive by default. Closes #3692. ```shell # in packages/ipfs node src/cli.js resolve /ipns/ipfs.io /ipfs/bafybeiagozluzfopjadeigrjlsmktseozde2xc5prvighob7452imnk76a ``` BREAKING CHANGE: resolve is now recursive by default Co-authored-by: Alex Potsides <alex@achingbrain.net>
ipfs resolve
isn't happy about dnslinks that point to other domains.The text was updated successfully, but these errors were encountered: