Skip to content

Add timestamp validation to tarball files #3859

Closed as not planned
Closed as not planned
@sylvestre

Description

@sylvestre

Describe the bug
If I have my history correct, it is quite unlikely that we have any Rust file written during the 1970 years, we should have files with timestamp from these years.

To Reproduce

$ wget  https://crates.io/api/v1/crates/grep-cli/0.1.6/download 
$ tar zxvf download
$  ls -al grep-cli-0.1.6/Cargo.toml
-rw-r--r-- 1 sylvestre sylvestre 1404  1 janv.  1970 grep-cli-0.1.6/Cargo.toml

Expected behavior

crates.io should probably reject incorrect/invalid timestamps
(it is causing pain the Debian packaging side)

It was probably caused by:
rust-lang/cargo#9512

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-backend ⚙️C-enhancement ✨Category: Adding new behavior or a change to the way an existing feature works

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions