Page MenuHomeSoftware Heritage

origin_metadata_add fails to write properly origin_metadata
Closed, MigratedEdits Locked

Description

Currently origin_metadata_add endpoints will fail with the following [1] error
trying to insert dict into a bytea field.

tl;dr the tests currently send the right input of bytes but the code in prod
sends dict. Which should be mapped to bytes, but a jsonize calls transforms
it into the previous jsonb format.

[1] https://sentry.softwareheritage.org/share/issue/5ef4e31eaa3847a4a23e39847c9ac55f/

Event Timeline

ardumont triaged this task as Unbreak Now! priority.May 19 2020, 5:41 PM
ardumont created this task.

In the end, that's the loader-deposit which sends the wrong data type when calling the endpoints...
@vlorentz has fixes in progress.

moranegg moved this task from Deployed to Archived on the SWORD deposit board.