Skip to content

ipfs://CIDv0 (ipfs://Qm…) becomes lowercase and doesn't work on firefox 89 #1006

Closed
@SuzanneSoy

Description

When accessing ipfs://QmUVTKsrYJpaxUT7dr9FpKq6AoKHhEM7eG1ZHGL56haKLG, the link is converted to lowercase, and an error message appears because of that.

To Reproduce

  1. Install ipfs-companion 2.19.0 on Firefox 89 from https://addons.mozilla.org/en-US/firefox/addon/ipfs-companion/
  2. start ipfs daemon on the command-line
  3. copy-paste this into the URL bar: ipfs://QmUVTKsrYJpaxUT7dr9FpKq6AoKHhEM7eG1ZHGL56haKLG
  4. the url rapidly changes to ipfs://qmuvtksryjpaxut7dr9fpkq6aokhhem7eg1zhgl56haklg and then to https://dweb.link/ipfs/qmuvtksryjpaxut7dr9fpkq6aokhhem7eg1zhgl56haklg which shows the following error:
invalid ipfs path: invalid path "/ipfs/qmuvtksryjpaxut7dr9fpkq6aokhhem7eg1zhgl56haklg": invalid CID: selected encoding not supported (possible lowercased CIDv0; consider converting to a case-agnostic CIDv1, such as base32)

Expected behaviour

The URL should stay ipfs://QmUVTKsrYJpaxUT7dr9FpKq6AoKHhEM7eG1ZHGL56haKLG or be converted to http://QmUVTKsrYJpaxUT7dr9FpKq6AoKHhEM7eG1ZHGL56haKLG.ipfs.localhost:8080/ or some other proxy, and a page containing the text Hello IPFS should appear.

Screenshots
20210607_05h39m26s_grim

Desktop

  • OS: Linux (Ubuntu 20.04 Focal, ipfs installed via nixpkgs)
  • Browser: Firefox 89.0 64-bit (installed via nixpkgs)
  • ipfs --version: ipfs version 0.8.0
  • ipfs-companion version: 2.19.0

Additional context

A similar issue has been reported in the past, and closed as fixed: #815

Metadata

Assignees

No one assigned

    Labels

    need/triageNeeds initial labeling and prioritization

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions