Page MenuHomeSoftware Heritage

Catch invalid dates before marking a deposit as verified.
ClosedPublic

Authored by vlorentz on Dec 21 2020, 3:16 PM.

Details

Summary

Otherwise, querying /1/private/<deposit_id>/meta/ will crash because it fails
to parse the date.

Resolves T2906.

Diff Detail

Repository
rDDEP Push deposit
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

Build is green

Patch application report for D4773 (id=16896)

Rebasing onto 90507a44a1...

Current branch diff-target is up to date.
Changes applied before test
commit 24ec1889a4d002ed03b96d2613486e8ae17ca379
Author: Valentin Lorentz <vlorentz@softwareheritage.org>
Date:   Mon Dec 21 15:16:11 2020 +0100

    Catch invalid dates before marking a deposit as verified.
    
    Otherwise, querying /1/private/<deposit_id>/meta/ will crash because it fails
    to parse the date.
    
    Resolves T2906.

See https://jenkins.softwareheritage.org/job/DDEP/job/tests-on-diff/492/ for more details.

This revision is now accepted and ready to land.Dec 21 2020, 3:33 PM