Skip to content

api/v0/get?archive=true: tar: time stamp is in the future  #8406

@milahu

Description

@milahu

Checklist

Installation method

built from source

Version

go-ipfs version: 0.9.1
Repo version: 11
System version: amd64/linux
Golang version: go1.16.7

Config

not relevant

Description

api/v0/get?archive=true produces archives with future timestamps (error is less than one second)

this will throw many warnings when extracting that archive

reproduce:

arg=bafybeiflkjt66aetfgcrgvv75izymd5kc47g6luepqmfq6zsf5w6ueth6y # ipfs-desktop/assets/webui/
curl -X POST "http://localhost:5001/api/v0/get?archive=true&compress=false&arg=$arg" -o o.tar 
tar xf o.tar

output:

tar: <some-file>: time stamp 2021-09-04 14:24:46 is 0.291997891 s in the future
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugA bug in existing code (including security flaws)

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions