Not able to use private network gateway due to 1x1.png
Describe the bug
Not able to use private network gateway due to 1x1.png
As it is pinned to use bafybeibwzifw52ttrkqlikfzext5akxu7lz4xiwjgwzmqcpdzmp3n5vnbe, when using a private network, is not able to configure the public gateway as it fails the check Check
To Reproduce Steps to reproduce the behavior:
- Connect to a private swarm
- Try to change the public/private gateway
- Fails because can't find 1x1.png as the CID can't be found
Expected behavior Check availability of gateway another way Allow to not check availability of gateway Allow to set custom probe of gateway availability
Desktop (please complete the following information):
- OS: Windows
- Browser chrome
- Version [UI v2.15.0]
Thank you for submitting your first issue to this repository! A maintainer will be here shortly to triage and review. In the meantime, please double-check that you have provided all the necessary information to make this process easy! Any information that can help save additional round trips is useful! We currently aim to give initial feedback within two business days. If this does not happen, feel free to leave a comment. Please keep an eye on how this issue will be labeled, as labels give an overview of priorities, assignments and additional actions requested by the maintainers:
- "Priority" labels will show how urgent this is for the team.
- "Status" labels will show if this is ready to be worked on, blocked, or in progress.
- "Need" labels will indicate if additional input or analysis is required.
Finally, remember to use https://discuss.ipfs.io if you just need general support.
-
this is a bug! thanks for finding this!
-
1x1.png is
bafybeibwzifw52ttrkqlikfzext5akxu7lz4xiwjgwzmqcpdzmp3n5vnbeisdag-pbwhich fails to load from public swarm because you have private networking set up -
fix here is to replace
bafybeibwzifw52ttrkqlikfzext5akxu7lz4xiwjgwzmqcpdzmp3n5vnbe- with
identityCID that had the data inlined (raw-leave + identity hash) - OR we could replace
1x1.pngCID with one for public/favicon.ico (which is already part of webui, so will be present in private setup that has webui cached)
PR welcome!
- with
ipfs add -q --hash=IDENTITY 1x1.png
bafkqax4jkbheodikdifaaaaabveuqrcsaaaaaaiaaaaacaidaaaaajo3k3faaaaaanieyvcfaaaabj32hxnaaaaaaf2fetstabaonwdgaaaaacsjiravicgxmnqaaaaaaiaadyrbxqzqaaaaabeuktsevzbgbaq
Querying with private gateway (assume localhost:8080) result in http://localhost:8080/ipfs/bafkqax4jkbheodikdifaaaaabveuqrcsaaaaaaiaaaaacaidaaaaajo3k3faaaaaanieyvcfaaaabj32hxnaaaaaaf2fetstabaonwdgaaaaacsjiravicgxmnqaaaaaaiaadyrbxqzqaaaaabeuktsevzbgbaq
Return status code=400
CID incompatible with DNS label length limit of 63: kdi0v5uo6z0hrybvhqyb5faspyh4pgy7cxv64dd4iwn8a1i0u0ffpn8t8960j2or6bo81cjkc2vjcrm5ebdwdl7ou91u15r1v7ywl7bv29vi2nh3t4d8o95g2sv9tzoq3evs6dk23bcfgnw5ukgfi7ngi
Wonder why https://ipfs.io can handle it correctly.
I have submitted a pull request, which take @lidel idea.
The validating function now issues 3 requests. If any 1 of them success, It is considered as a valid server.
I did the testing and most public server can accept all 3 hashes. I also setup a private server and identity hash worked OK.
:tada: This issue has been resolved in version 2.18.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket: