ipfs://CIDv0 (ipfs://Qm…) becomes lowercase and doesn't work on firefox 89 #1006
Description
When accessing ipfs://QmUVTKsrYJpaxUT7dr9FpKq6AoKHhEM7eG1ZHGL56haKLG, the link is converted to lowercase, and an error message appears because of that.
To Reproduce
- Install ipfs-companion 2.19.0 on Firefox 89 from https://addons.mozilla.org/en-US/firefox/addon/ipfs-companion/
- start
ipfs daemon
on the command-line - copy-paste this into the URL bar:
ipfs://QmUVTKsrYJpaxUT7dr9FpKq6AoKHhEM7eG1ZHGL56haKLG
- the url rapidly changes to
ipfs://qmuvtksryjpaxut7dr9fpkq6aokhhem7eg1zhgl56haklg
and then tohttps://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.
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
-
Entering https://dweb.link/ipfs/QmUVTKsrYJpaxUT7dr9FpKq6AoKHhEM7eG1ZHGL56haKLG in the URL bar works (and redirects to http://bafybeic3m55e3k75my22xepbnga5m7gao5dzvtwpnyjkebjqir54dlngfu.ipfs.localhost:8080/)
-
Entering ipfs://bafybeic3m55e3k75my22xepbnga5m7gao5dzvtwpnyjkebjqir54dlngfu in the URL bar works (and redirects to http://bafybeic3m55e3k75my22xepbnga5m7gao5dzvtwpnyjkebjqir54dlngfu.ipfs.localhost:8080/)
-
Entering /ipfs/QmUVTKsrYJpaxUT7dr9FpKq6AoKHhEM7eG1ZHGL56haKLG in the URL bar works (and redirects to file:///ipfs/QmUVTKsrYJpaxUT7dr9FpKq6AoKHhEM7eG1ZHGL56haKLG)
-
Entering /ipfs/bafybeic3m55e3k75my22xepbnga5m7gao5dzvtwpnyjkebjqir54dlngfu in the URL bar works (and redirects to file:///ipfs/bafybeic3m55e3k75my22xepbnga5m7gao5dzvtwpnyjkebjqir54dlngfu)
-
Entering QmUVTKsrYJpaxUT7dr9FpKq6AoKHhEM7eG1ZHGL56haKLG.ipfs.localhost:8080 in the URL bar DOES NOT WORK (it gets redirected to http://qmuvtksryjpaxut7dr9fpkq6aokhhem7eg1zhgl56haklg.ipfs.localhost:8080/)
-
Entering bafybeic3m55e3k75my22xepbnga5m7gao5dzvtwpnyjkebjqir54dlngfu.ipfs.localhost:8080 in the URL bar works (and redirects to http://bafybeic3m55e3k75my22xepbnga5m7gao5dzvtwpnyjkebjqir54dlngfu.ipfs.localhost:8080/)
-
Entering ipfs://ipfs/QmUVTKsrYJpaxUT7dr9FpKq6AoKHhEM7eG1ZHGL56haKLG in the URL bar works (and redirects to http://bafybeic3m55e3k75my22xepbnga5m7gao5dzvtwpnyjkebjqir54dlngfu.ipfs.localhost:8080/)
-
Entering ipfs://ipfs/bafybeic3m55e3k75my22xepbnga5m7gao5dzvtwpnyjkebjqir54dlngfu in the URL bar works (and redirects to http://bafybeic3m55e3k75my22xepbnga5m7gao5dzvtwpnyjkebjqir54dlngfu.ipfs.localhost:8080/)
-
Entering ipfs://./QmUVTKsrYJpaxUT7dr9FpKq6AoKHhEM7eG1ZHGL56haKLG in the URL bar works (and redirects to http://bafybeic3m55e3k75my22xepbnga5m7gao5dzvtwpnyjkebjqir54dlngfu.ipfs.localhost:8080/)
-
Entering ipfs://./bafybeic3m55e3k75my22xepbnga5m7gao5dzvtwpnyjkebjqir54dlngfu in the URL bar works (and redirects to http://bafybeic3m55e3k75my22xepbnga5m7gao5dzvtwpnyjkebjqir54dlngfu.ipfs.localhost:8080/)
-
Entering ipfs:./QmUVTKsrYJpaxUT7dr9FpKq6AoKHhEM7eG1ZHGL56haKLG in the URL bar works (and redirects to http://bafybeic3m55e3k75my22xepbnga5m7gao5dzvtwpnyjkebjqir54dlngfu.ipfs.localhost:8080/)
-
Entering ipfs:./bafybeic3m55e3k75my22xepbnga5m7gao5dzvtwpnyjkebjqir54dlngfu in the URL bar works (and redirects to http://bafybeic3m55e3k75my22xepbnga5m7gao5dzvtwpnyjkebjqir54dlngfu.ipfs.localhost:8080/)
A similar issue has been reported in the past, and closed as fixed: #815