Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

files.cat and object.links / object.data fail on some files they should work on #1258

Closed
@mitra42

Description

@mitra42
  • Version: 0.28.1
  • Platform: OSX 10.13.3, Node v8.8.1
  • Subsystem: files.cat and object.links/object.data

Type: Bug

Severity: High

Description: files.cat or object.links, object.data dont work on some links they almost certainly should do.

Steps to reproduce the error:

See the attached file which can be run with

mv test_ipfs_video.js.txt test_ipfs_video.js   # Because git wont let me attach a .js
[test_ipfs_video.js.txt](https://github.com/ipfs/js-ipfs/files/1800152/test_ipfs_video.js.txt)

node test_ipfs_video.js

it tests retrieving two different files via files.cat and via the object.links, object.data sequence used in 8f8c539
One file works, the other fails.

The differences / similarities.
Both are retrievable via the gateway
PDF https://ipfs.io/ipfs/Qmbzs7jhkBZuVixhnM3J3QhMrL6bcAoSYiRPZrdoX3DhzB
VIDEO https://ipfs.io/ipfs/zdj7Wc9BBA2kar84oo8S6VotYc9PySAnmc8ji6kzKAFjqMxHS
Both are multi-block, the first has 2 links, the second 46
The PDF was uploaded via http with /api/v0/add maybe 6 months ago
The VIDEO was uploaded via http with /api/v0/urlstore about 2 months ago

The PDF is retrieved successfully with either files.cat or object.links / object.data (see the code for what I mean by this)

On the VIDEO
files.cat fails with Failed to unmarshal node
object.data returns undefined on the first block of the video

I don't think the difference is PDF v VIDEO since its not accuracy of the data that is the issue, its the failure to retrieve it at all with files.cat

Metadata

Metadata

Assignees

Labels

P1High: Likely tackled by core team if no one steps upexp/expertHaving worked on the specific codebase is importanthelp wantedSeeking public contribution on this issuekind/bugA bug in existing code (including security flaws)kind/maybe-in-helianeed/triageNeeds initial labeling and prioritizationstatus/readyReady to be worked

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions