-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Resolving links in sharded directories does not seem to work #5270
Comments
Likely introduced in #4672 which switched from using |
@magik6k something is still weird here... https://ipfs.io/ipfs/QmXeh5S5Dk528ueFX3iFRB5TuKUNrWM9dEiLfC4crVwuHD is a sharded directory. https://ipfs.io/ipfs/QmXeh5S5Dk528ueFX3iFRB5TuKUNrWM9dEiLfC4crVwuHD/PAL_Express.html gives me If I look on the IPLD explorer and take that path: https://explore.ipld.io/#/explore/QmXeh5S5Dk528ueFX3iFRB5TuKUNrWM9dEiLfC4crVwuHD it would be https://ipfs.io/ipfs/QmXeh5S5Dk528ueFX3iFRB5TuKUNrWM9dEiLfC4crVwuHD/27PAL_Express.html gives me |
Also:
|
Looking at it |
So that's probably a separate issue as the right resolver is used, and on the right nodes. The error seems to come from https://github.com/ipfs/go-unixfs/blob/master/hamt/hamt.go#L388. Digging deeper |
I tried this on |
It would be interesting to figure out what exactly is malformed here, and how @victorbjelkholm managed to get an incorrectly formed sharded directory. Also better error messages would be 🔥 |
I'm not sure where those hashes come from, don't remember. But here is another example from Cloudflares Stack Exchange archive: https://ipfs.io/ipfs/QmVsEiBRsdiHMvmDVJTNtrXNqSKYdtoepcoZxUrQ8rU7qR/ham/A/index.html There is supposed to be a directory called $ ipfs resolve /ipfs/QmVsEiBRsdiHMvmDVJTNtrXNqSKYdtoepcoZxUrQ8rU7qR/ham
Error: no link named "ham" under QmVsEiBRsdiHMvmDVJTNtrXNqSKYdtoepcoZxUrQ8rU7qR
|
I'll look into this later today |
Thanks @magik6k IPLD explorer to the rescue! Loaded it up (https://explore.ipld.io/#/explore/QmVsEiBRsdiHMvmDVJTNtrXNqSKYdtoepcoZxUrQ8rU7qR) and found the "true" directory name $ ipfs resolve /ipfs/QmVsEiBRsdiHMvmDVJTNtrXNqSKYdtoepcoZxUrQ8rU7qR/05ham
/ipfs/zdj7WZpLoZYr4AoDUdpCNBVHLi1S8y6muFoCgwUa9kmxUpYCr So it's not fully "not-working" :) |
Thanks @Stebalien and @magik6k, I can confirm that the |
Version information:
Gateways running commit 1dede1b
Type:
Bug
Description:
I've tried three projects that are using sharded directories and one without. The one without resolves links correctly but none of the projects using sharded directories works for resolving links. However, it does work when using 0.4.15
ipfs resolve -r /ipns/arch.victor.earth/community: no link by that name
The text was updated successfully, but these errors were encountered: