{"action":"created","issue":{"url":"https://api.github.com/repos/ipfs/go-ipfs/issues/4667","repository_url":"https://api.github.com/repos/ipfs/go-ipfs","labels_url":"https://api.github.com/repos/ipfs/go-ipfs/issues/4667/labels{/name}","comments_url":"https://api.github.com/repos/ipfs/go-ipfs/issues/4667/comments","events_url":"https://api.github.com/repos/ipfs/go-ipfs/issues/4667/events","html_url":"https://github.com/ipfs/go-ipfs/issues/4667","id":294941540,"number":4667,"title":"Error: archive/tar: write too long","user":{"login":"ivan386","id":717207,"avatar_url":"https://avatars1.githubusercontent.com/u/717207?v=4","gravatar_id":"","url":"https://api.github.com/users/ivan386","html_url":"https://github.com/ivan386","followers_url":"https://api.github.com/users/ivan386/followers","following_url":"https://api.github.com/users/ivan386/following{/other_user}","gists_url":"https://api.github.com/users/ivan386/gists{/gist_id}","starred_url":"https://api.github.com/users/ivan386/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ivan386/subscriptions","organizations_url":"https://api.github.com/users/ivan386/orgs","repos_url":"https://api.github.com/users/ivan386/repos","events_url":"https://api.github.com/users/ivan386/events{/privacy}","received_events_url":"https://api.github.com/users/ivan386/received_events","type":"User","site_admin":false},"labels":[{"id":109732110,"url":"https://api.github.com/repos/ipfs/go-ipfs/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"open","locked":false,"assignee":{"login":"kevina","id":1271492,"avatar_url":"https://avatars2.githubusercontent.com/u/1271492?v=4","gravatar_id":"","url":"https://api.github.com/users/kevina","html_url":"https://github.com/kevina","followers_url":"https://api.github.com/users/kevina/followers","following_url":"https://api.github.com/users/kevina/following{/other_user}","gists_url":"https://api.github.com/users/kevina/gists{/gist_id}","starred_url":"https://api.github.com/users/kevina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevina/subscriptions","organizations_url":"https://api.github.com/users/kevina/orgs","repos_url":"https://api.github.com/users/kevina/repos","events_url":"https://api.github.com/users/kevina/events{/privacy}","received_events_url":"https://api.github.com/users/kevina/received_events","type":"User","site_admin":false},"assignees":[{"login":"kevina","id":1271492,"avatar_url":"https://avatars2.githubusercontent.com/u/1271492?v=4","gravatar_id":"","url":"https://api.github.com/users/kevina","html_url":"https://github.com/kevina","followers_url":"https://api.github.com/users/kevina/followers","following_url":"https://api.github.com/users/kevina/following{/other_user}","gists_url":"https://api.github.com/users/kevina/gists{/gist_id}","starred_url":"https://api.github.com/users/kevina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevina/subscriptions","organizations_url":"https://api.github.com/users/kevina/orgs","repos_url":"https://api.github.com/users/kevina/repos","events_url":"https://api.github.com/users/kevina/events{/privacy}","received_events_url":"https://api.github.com/users/kevina/received_events","type":"User","site_admin":false}],"milestone":null,"comments":13,"created_at":"2018-02-06T22:48:34Z","updated_at":"2018-02-11T01:38:20Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"#### Version information:\r\ngo-ipfs version: 0.4.13-\r\nRepo version: 6\r\nSystem version: amd64/windows\r\nGolang version: go1.9.2\r\n\r\n#### Type: Bug\r\n\r\n#### Description:\r\nFile: /ipfs/QmWfLgAopxBBpnPsMeQWQhcVfHHEo7natWgtcX5yzw7My3\r\n\r\nWhen get this file from browser:\r\n`http://127.0.0.1/ipfs/QmWfLgAopxBBpnPsMeQWQhcVfHHEo7natWgtcX5yzw7My3 200 Ok`\r\n\r\nResult is valid tar archive: [test tar.tar.gz](https://github.com/ipfs/go-ipfs/files/1700847/test.tar.tar.gz) (it gziped for upload to GitHub)\r\nBlocks of this file: [blocks.tar.gz](https://github.com/ipfs/go-ipfs/files/1700817/blocks.tar.gz)\r\n\r\nWhen get from console:\r\n```\r\n>ipfs get QmWfLgAopxBBpnPsMeQWQhcVfHHEo7natWgtcX5yzw7My3\r\nSaving file(s) to QmWfLgAopxBBpnPsMeQWQhcVfHHEo7natWgtcX5yzw7My3\r\n 2.28 KB / 2.28 KB [==============================================] 100.00% 0s\r\nError: archive/tar: write too long\r\n```\r\nWhy \"ipfs get\" try to read tar?\r\n\r\n#### Additional information:\r\n\r\n```\r\n>ipfs dag get QmWfLgAopxBBpnPsMeQWQhcVfHHEo7natWgtcX5yzw7My3\r\n{\"data\":\"CAIYgBAggAgggAQggAQ=\",\"links\":[{\"Cid\":{\"/\":\"QmbTswUf339CVJsqB6rSeNum7hrnUsNqFbgkth8g3u2chX\"},\"Name\":\"\",\"Size\":1165},{\"Cid\":{\"/\":\"zb2rhX9DvypVUCrp1SyoB6JpvdNEGcujJm7RZ6btt1zJBvnKq\"},\"Name\":\"\",\"Size\":512},{\"Cid\":{\"/\":\"zb2rhX9DvypVUCrp1SyoB6JpvdNEGcujJm7RZ6btt1zJBvnKq\"},\"Name\":\"\",\"Size\":512}]}\r\n```\r\ndecode of data field:\r\n```\r\n\"data\":{\r\n  \"Type\": 2,           // It's file\r\n  \"filesize\": 2048,  // sum of blocksizes\r\n  \"blocksizes\": [\r\n    1024,               // file header size + file data size + file padding size\r\n    512,                 // padding block size\r\n    512                  // padding block size\r\n  ]\r\n}\r\n```\r\n\r\n```\r\n>ipfs dag get QmbTswUf339CVJsqB6rSeNum7hrnUsNqFbgkth8g3u2chX\r\n{\"data\":\"CAISgAR0ZXN0IHRhci50eHQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMDEwMDc3NwAwMDAwMDAwADAwMDAwMDAAMDAwMDAwMDAwNDQAMTMyMzY0MDYzMTAAMDExNTM3ACAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHVzdGFyADAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADAwMDAwMDAAMDAwMDAwMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABiACCAkINwD\",\"links\":[{\"Cid\":{\"/\":\"zb2rhfY128Mz2bimXoxi7aZuc5NPQMWaLPJYVSTLoYWs7rsdz\"},\"Name\":\"\",\"Size\":36},{\"Cid\":{\"/\":\"zb2rhX9DvypVUCrp1SyoB6JpvdNEGcujJm7RZ6btt1zJBvnKq\"},\"Name\":\"\",\"Size\":512}]}\r\n```\r\ndecode of data field:\r\n```\r\ndata: {\r\n  \"Type\": 2,                      // It's file\r\n  \"Data\": \"test tar.txt...\",   // 512 bytes tar file header\r\n  \"filesize\": 1024,             // file header size + file data size + file padding size\r\n  \"blocksizes\": [\r\n    36,                              // file data size\r\n    476                             // file padding size (it's hack)\r\n  ]\r\n}\r\n```\r\n\r\n[zb2rhfY128Mz2bimXoxi7aZuc5NPQMWaLPJYVSTLoYWs7rsdz](https://github.com/ipfs/go-ipfs/files/1701076/zb2rhfY128Mz2bimXoxi7aZuc5NPQMWaLPJYVSTLoYWs7rsdz.gz) (36) - file data raw block\r\n```\r\n>ipfs block get zb2rhfY128Mz2bimXoxi7aZuc5NPQMWaLPJYVSTLoYWs7rsdz\r\nThis is \"test tar.txt\" file content.\r\n```\r\n\r\n\r\n[zb2rhX9DvypVUCrp1SyoB6JpvdNEGcujJm7RZ6btt1zJBvnKq](https://github.com/ipfs/go-ipfs/files/1701078/zb2rhX9DvypVUCrp1SyoB6JpvdNEGcujJm7RZ6btt1zJBvnKq.gz) (512) - padding raw block\r\n```\r\n> ipfs block get zb2rhX9DvypVUCrp1SyoB6JpvdNEGcujJm7RZ6btt1zJBvnKq\r\n```\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/ipfs/go-ipfs/issues/comments/364711531","html_url":"https://github.com/ipfs/go-ipfs/issues/4667#issuecomment-364711531","issue_url":"https://api.github.com/repos/ipfs/go-ipfs/issues/4667","id":364711531,"user":{"login":"kevina","id":1271492,"avatar_url":"https://avatars2.githubusercontent.com/u/1271492?v=4","gravatar_id":"","url":"https://api.github.com/users/kevina","html_url":"https://github.com/kevina","followers_url":"https://api.github.com/users/kevina/followers","following_url":"https://api.github.com/users/kevina/following{/other_user}","gists_url":"https://api.github.com/users/kevina/gists{/gist_id}","starred_url":"https://api.github.com/users/kevina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevina/subscriptions","organizations_url":"https://api.github.com/users/kevina/orgs","repos_url":"https://api.github.com/users/kevina/repos","events_url":"https://api.github.com/users/kevina/events{/privacy}","received_events_url":"https://api.github.com/users/kevina/received_events","type":"User","site_admin":false},"created_at":"2018-02-11T01:38:20Z","updated_at":"2018-02-11T01:38:20Z","author_association":"CONTRIBUTOR","body":"@ivan386 #4680 should fix this.  `ipfs get` `ipfs cat` and getting via the gateway now or return the correct size tar and without errors."}}
{"actor":{"display_login":"kevina"}}