ipfs / ipfs/kubo

A plain UnixFS directory linking to a dag-cbor object can not be viewed in the gateway

Open
#8,223 0 comments 0 reactions 0 assignees View on GitHub
effort/hours exp/intermediate help wanted kind/bug P3
Dominant language
Go
Stars
17.1k
Forks
3.2k
Avg merge
3d 18h
Merged PRs (30d)
11

Description

#### Version information:
https://gateway.ipfs.io/api/v0/version

#### Description:
The gateway currently is unable to render [bafybeifv7xg2k7ttuzdz7zjpd5mnqeft5j6supj3or6ceziloaljhlvj6a](https://gateway.ipfs.io/ipfs/bafybeifv7xg2k7ttuzdz7zjpd5mnqeft5j6supj3or6ceziloaljhlvj6a)

This is a plain UnixFSv1 DagPB directory containing a number of links, one of which is to the CBOR object [bafyreianqjvyh7qmnvmfydpk7cpdgvhz6kcm7ycq6rkm23axmk4gzmd67q](http://cbor.me/?bytes=A4(64(6E616D65)-6B(4B696D5F3432382E6A7067)-64(74797065)-63(6E6674)-6B(6465736372697074696F6E)-78.1A(6465736372697074696F6E204B696D5F3432382E6A7067233732)-6D(6D657461646174612E6A736F6E)-D8.2A(58.25(000155122013662BDC0EE080F39E4F00686D6A6B681D916D22E4232FEA1D15B4A8824F92F0))))

While it is understandable that the gateway can not render the CBOR ( for now ), this *should not* prevent a user to see the rest of the entries and navigate through them. For contrast the CLI works as expected:
```
~$ ipfs ls bafybeifv7xg2k7ttuzdz7zjpd5mnqeft5j6supj3or6ceziloaljhlvj6a
bafkreifcqusmxthjqp4ct5zawcv3gwqpnt5c7p3gbwxmaerf6oybt5d67q 12862 bafkreifcqusmxthjqp4ct5zawcv3gwqpnt5c7p3gbwxmaerf6oybt5d67q
bafybeiaaizgqcmytethoht2bxjx6no3on7f2m7ikd6xekkobhvvzwnd67q 41 bafybeiaaizgqcmytethoht2bxjx6no3on7f2m7ikd6xekkobhvvzwnd67q
bafybeiablc6mofxa5kslifipnks4ib2ektnp5k4yfvtk2u5rzxy7kad67q 419 bafybeiablc6mofxa5kslifipnks4ib2ektnp5k4yfvtk2u5rzxy7kad67q
bafybeibcxslqgdzvzemn7wfue5s2e7z3irgtvegyasumkzvvzijanwd67q 6316 bafybeibcxslqgdzvzemn7wfue5s2e7z3irgtvegyasumkzvvzijanwd67q
bafybeibnxipipesubex3z2a4dtx4jyzo23gveowgfpcmrnzwpg3olqd67q 398 bafybeibnxipipesubex3z2a4dtx4jyzo23gveowgfpcmrnzwpg3olqd67q
bafybeicjmg6766nkbud3zu3etq3lb4kk3uqx3obaq7zxbobtnnlh4pd67q 41 bafybeicjmg6766nkbud3zu3etq3lb4kk3uqx3obaq7zxbobtnnlh4pd67q
bafybeicmfj3g22tyns5zpkaga5e26avsue4o2bqirjqak2svkxq6lod67q 275489 bafybeicmfj3g22tyns5zpkaga5e26avsue4o2bqirjqak2svkxq6lod67q
bafybeid6scyjsn746z7wne5zqauvh53b5kklfnpmx3kehytgdmdxu6d67q 37 bafybeid6scyjsn746z7wne5zqauvh53b5kklfnpmx3kehytgdmdxu6d67q
bafybeidr4iyciorwyrr4inp64vdkyaklpq7ypqbpu6ca32wz2i6myrd67q 438 bafybeidr4iyciorwyrr4inp64vdkyaklpq7ypqbpu6ca32wz2i6myrd67q
bafybeie5c6c527spr7dqb6langa52qybk23lskrx5zdtcztoz6rs6qd67q 420 bafybeie5c6c527spr7dqb6langa52qybk23lskrx5zdtcztoz6rs6qd67q
bafybeiez3ctlifp6dzf2qbyafuupuy76qf6v3c2fcxrwpv7x7ybvsvd67q 2337713 bafybeiez3ctlifp6dzf2qbyafuupuy76qf6v3c2fcxrwpv7x7ybvsvd67q
bafybeifdbozcmtres4vwlnbp2bd7zode5xc6ikxnhdamohx6j4poevd67q 41 bafybeifdbozcmtres4vwlnbp2bd7zode5xc6ikxnhdamohx6j4poevd67q
bafybeifyinjnkslx7aipf6ok52bnqh5ku46q7cxcfzdqgkske32o2nd67q 420 bafybeifyinjnkslx7aipf6ok52bnqh5ku46q7cxcfzdqgkske32o2nd67q
bafybeiguwllpaohllsnksd6btwspgdsccjlx24oit3u4xflxdzmjjbd67q 37 bafybeiguwllpaohllsnksd6btwspgdsccjlx24oit3u4xflxdzmjjbd67q
bafyreianqjvyh7qmnvmfydpk7cpdgvhz6kcm7ycq6rkm23axmk4gzmd67q 0 bafyreianqjvyh7qmnvmfydpk7cpdgvhz6kcm7ycq6rkm23axmk4gzmd67q
```

Contributor guide

Open the contributing guide

Research direction

Reproduce the reported CID through the gateway URL and compare its behavior with `ipfs ls` for the same UnixFS directory. Start by tracing the gateway’s UnixFS directory-listing path and how it handles the linked dag-cbor object. Done means the gateway displays and allows navigation through the other directory entries even when one linked object cannot be rendered.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
api, backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.