-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Closed
Labels
kind/bugA bug in existing code (including security flaws)A bug in existing code (including security flaws)need/triageNeeds initial labeling and prioritizationNeeds initial labeling and prioritizationtopic/MFSTopic MFSTopic MFS
Description
Version information:
go-ipfs version: 0.8.0
Repo version: 11
System version: amd64/linux
Golang version: go1.15.8
Description:
Given QmYw8okuEpxCPhfX3CKbF8mtpmyHPHP9VC3VNhUepytcSh
which is producing EOF error:
$ ipfs files stat /ipfs/QmYw8okuEpxCPhfX3CKbF8mtpmyHPHP9VC3VNhUepytcS
Error: unexpected EOF
..one can import it to MFS, but then removal is not possible:
$ ipfs files cp /ipfs/QmYw8okuEpxCPhfX3CKbF8mtpmyHPHP9VC3VNhUepytcSh /foo
Error: cp: cannot flush the created file /foo: unexpected EOF
$ ipfs files ls /
foo
$ ipfs files rm /foo
Error: unexpected EOF
🙈
I imagine we should
- guard
files cp
against EOF somehow, so getting into this mess is not possible - (and/or) make it possible to
files rm
even when a file causes unexpected error
Metadata
Metadata
Assignees
Labels
kind/bugA bug in existing code (including security flaws)A bug in existing code (including security flaws)need/triageNeeds initial labeling and prioritizationNeeds initial labeling and prioritizationtopic/MFSTopic MFSTopic MFS