-
-
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
bafy addresses ... #7410
Comments
Thank you for submitting your first issue to this repository! A maintainer will be here shortly to triage and review.
Finally, remember to use https://discuss.ipfs.io if you just need general support. |
Thanks for the report. This looks like a duplicate of #7318. This will be mostly fixed by #7358 but long CIDs will still cause problems on gateways using HTTPS because the solution involves multiple subdomains. Locally, you can use
|
@michel47 out of curiosity - what software / series of steps created these CIDs? I am specifically wondering what is out there in the wild that makes 408-byte long identity CIDs like your example of https://cid.ipfs.io/#bafyaamysfufbqalqceko7ysftes3sjvhryqnh7q4sjej23qudo2bedlcm4ww2zlcovrc453fmjybrnggaefaecab |
He used |
Thanks @Stebalien, I was not aware of the --inline option, and yes it is practically what I was doing as I am using a program call what the label=label678
bafy=bafkrcfemdrgiu6s3qog46qnt4r7aifddskrxh6i
csize=$(ipfs files stat --size=1 /ipfs/$bafy)
echo "{'data':'CAE=','links':[{'Cid':{'/':'$bafy'},'Name':'$label','Size':$csize}]}" | sed -e "s/'/\"/g" | ipfs dag put -f protobuf --hash identity
note: sha1 is used as it is the smallest hash allowed thus minimizing the size of the "inline" object ...
|
Whatever you do, please do not use sha1. It's supported for compatibility with git but it's not secure against some forms of attacks and will likely be disabled/restricted in the future.
|
Version information:
Description:
After switching to ipfs 0.5 and fixing a few API changes, I still have problem with some of multihashes due to the fact that old path http://localhost:8080/ipfs/:mhash58 get systematically redirected to http://:bafy32.ipfs.localhost:8080/
and this breaks w/ https://gateway.ipfs.io/ipfs/mAXAAMxItChgBcBEU7+JFmSW5JqeOINP+HJJInW4UG7QSDWJnLW1lYnViLndlYnAYtMYBCgIIAQ/bg-mebub.webp
The error I get is
would it be because of the length of the "bafy" multihash ?
because https://ipfs.io/ipfs/z8bvj226WBEd2XS2mnGgjd9FrrAb1mWfd is working fine
and so does : http://bafybcfhp4jczsjnze2ty4igt7yojese5nykbxna.ipfs.localhost:8080/
if I access /ipfs/mAXAAMxItChgBcBEU7+JFmSW5JqeOINP+HJJInW4UG7QSDWJnLW1lYnViLndlYnAYtMYBCgIIAQ/bg-mebub.webp
the via an old 0.4 server (like cloudflare's one) : it does works (probably because it doesn't switch to the "subdomained" address)
To Summarize
Can we have a conditional redirect if bafy hash > 63char then don't redirect ?
The text was updated successfully, but these errors were encountered: