-
-
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
ipfs get & cat: link resolution not working for HAMT-sharded directories #8072
Comments
Potentially related: #3911 |
This may be resolved by #7976, but needs investigation to check. |
So, sharded directories should definitely work here. We have tests, people use them all the time on the gateways, I've fixed these bugs before, etc. It looks like these blocks are intermediate nodes in the sharded directory but I haven't confirmed that. The real bug here is that we don't verify the HAMT structure when listing, we just blindly walk the DAG. |
Indeed,
The CID listed here ( The real HAMT root like https://explore.ipld.io/#/explore/QmRNXpMRzsTHdRrKvwmWisgaojGKLPqHxzQfrXdfNkettC |
It's quite possible these are intermediate nodes, but that does not appear to me as a sound reason for the API to break. If I can list the links from one resource to another, I should be able to follow those links, shouldn't I? I would really appreciate if you reconsider this and either open the issue again or create a follow-up ticket implementing the suggested API. Thanks! |
You're absolutely correct. We should have failed at the |
Thanks for picking up on this @Stebalien! |
Version information:
Description:
On several occasions, I have found that links which can be listed, when requesting them, yield a 404. Example:
The same result appears on the public gateway: https://gateway.ipfs.io/ipfs/QmUygZRt3uF4gco8Ff3qmRa9xpYZsodhijPPVD2XmubBLr/Roman_Election.jpg.webp
The text was updated successfully, but these errors were encountered: