Page MenuHomeSoftware Heritage

origin_metadata_add fails to write properly origin_metadata
Closed, MigratedEdits Locked


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.


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.