This repository has been archived by the owner on Mar 22, 2022. It is now read-only.
Broken CID column on DNSLink gateway #42
Labels
kind/bug
A bug in existing code (including security flaws)
need/triage
Needs initial labeling and prioritization
There is a problem when directory listing happens on DNSLink gateway (website under own domain name, backed by go-ipfs+DNSLink)
How to reproduce
To illustrate, if I render HTML like this (with go-ipfs 0.7.0):
$ curl -H "Host: dist.ipfs.io" -sD - "http://127.0.0.1:8080/go-ipfs/v0.7.0"
The breadcrumbs are broken:
Links under filenames are ok, but direct links to CID under truncated CIDs are broken:
This is because the
/ipfs/...
gateway is not mounted under DNSLink hostnames.That is why attempt to load content path will fail:
TLDR
Good news is that the main link under filename continue to work, what is broken is this newly added CID column Its broken on DNSLink websites such as https://dist.ipfs.io/go-ipfs/v0.7.0 (when loaded without redirect to local gateway).
How to fix
/ipfs
and/ipns
when used on DNSLink gateway (path being/ipns/{Host}
whereHost
match value from the header of the same name)ipfs.io
./ipfs/<cid>
is not available, link tohttps://cid.ipfs.io#<cid>
instead*.ipns.localhost
(no bug in subdomain contexts)The text was updated successfully, but these errors were encountered: