Skip to content
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

Broken dweb.link page with EOF tries to open after toggling to install IPFS Companion in French #16671

Closed
stephendonner opened this issue Jun 29, 2021 · 6 comments · Fixed by ipfs/ipfs-companion#1011

Comments

@stephendonner
Copy link

Description

Broken dweb.link page with EOF tries to open after toggling to install IPFS Companion in French

Steps to Reproduce

  1. set OS region and language to France and French, respectively
  2. new profile
  3. launch Brave
  4. open brave://settings/ipfs and toggle IPFS Companion to on/enabled
  5. wait

Actual result:

https://dweb.link/ipfs/bafkqaaa/ opens in a new tab, with cannot detect content-type: EOF

Capture d’écran 2021-06-28 à 18 45 23

ipfs-eof

Expected result:

Should install IPFS Companion successfully, with this page: ipfs://bafkqaaa/ in a new tab

Capture d’écran 2021-06-28 à 18 51 14

Reproduces how often:

100%-ish

Brave version (brave://version info)

Brave 1.28.34 Chromium: 91.0.4472.124 (Build officiel) nightly (x86_64)
Révision 7345a6d1bfcaff81162a957e9b7d52649fe2ac38-refs/branch-heads/4472_114@{#6}
Système d'exploitation macOS Version 11.4 (assemblage 20F71)
@stephendonner
Copy link
Author

Found while testing #15586

@lidel
Copy link

lidel commented Jun 30, 2021

Seems that dweb.link got updated to go-ipfs 0.9 and there is something different about handling of CIDs with identity multihash (like bafkqaaa), will look into this ASAP.

lidel added a commit to ipfs/ipfs-companion that referenced this issue Jun 30, 2021
This replaces bafkqaaa with bafkqae2xmvwgg33nmuqhi3zajfiemuzahiwss to
ensure gateway response in go-ipfs 0.9 does not error.

Fixes brave/brave-browser#16671
lidel added a commit to ipfs/ipfs-companion that referenced this issue Jun 30, 2021
This replaces bafkqaaa with bafkqae2xmvwgg33nmuqhi3zajfiemuzahiwss to
ensure gateway response in go-ipfs 0.9 does not error.

Fixes brave/brave-browser#16671
@lidel
Copy link

lidel commented Jun 30, 2021

  • There is a regression in mimetype sniffing library used by go-ipfs gateway, it changed the behavior when an empty byte array is processed. Unfortunately, that is exactly what bafkqaaa returns.

@lidel
Copy link

lidel commented Jun 30, 2021

@stephendonner Companion v2.19.1 just got approved, it includes a fix that should solve this without waiting for go-ipfs.
Mind re-testing and confirming the issue is gone?

@stephendonner
Copy link
Author

@stephendonner Companion v2.19.1 just got approved, it includes a fix that should solve this without waiting for go-ipfs.
Mind re-testing and confirming the issue is gone?

Looks good using https://github.com/ipfs/ipfs-companion/releases/tag/v2.19.1 with

Brave 1.28.37 Chromium: 91.0.4472.124 (Official Build) nightly (x86_64)
Revision 7345a6d1bfcaff81162a957e9b7d52649fe2ac38-refs/branch-heads/4472_114@{#6}
OS macOS Version 11.4 (Build 20F71)
example example example
Capture d’écran 2021-06-30 à 2 21 50 PM Capture d’écran 2021-06-30 à 2 22 57 PM Capture d’écran 2021-06-30 à 2 23 32 PM

@lidel
Copy link

lidel commented Jul 1, 2021

Awesome!
I believe we can close this as solved: Companion will no longer use the problematic CID, so we don't need to wait for upstream fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants