Prior to this commit, any error returned by the deposit server would end up a
cascading KeyError [1]
This commit fixes it.
I'm not sure whether we want to keep the existing behavior. I don't think that old code
is possible to reach.
[1] P980
Differential D5298
deposit.cli: Fix cli parsing issue when xml error is returned by server ardumont on Mar 22 2021, 4:00 PM. Authored by
Details
Prior to this commit, any error returned by the deposit server would end up a This commit fixes it. I'm not sure whether we want to keep the existing behavior. I don't think that old code [1] P980 one test added
Diff Detail
Event TimelineComment Actions Build is green Patch application report for D5298 (id=18981)Rebasing onto 1c20fcc561... Current branch diff-target is up to date. Changes applied before testcommit f850eff5d8424a975c28bce6996a7ae65a025629 Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org> Date: Mon Mar 22 15:57:21 2021 +0100 deposit.cli: Fix cli parsing issue when xml error is returned by server Prior to this commit, any error returned by the deposit server would end up a cascading KeyError. This commit fixes it. See https://jenkins.softwareheritage.org/job/DDEP/job/tests-on-diff/584/ for more details.
Comment Actions Looks good to me.
Comment Actions I have no idea what this is about. Does the server send two different error formats now? Is it a bug? If not, why?
Comment Actions
Have you read the diff description and the associated paste?
No, it's the same as before... but... see below.
Yes, thus the verb "fix" in the commit message and the diff description. The deposit cli currently fails to parse the error message sent by the I gather it's bugged since when we introduced the right way to parse xml I noticed it last week when i deployed the integration test in staging and Comment Actions Build is green Patch application report for D5298 (id=18984)Rebasing onto 1c20fcc561... Current branch diff-target is up to date. Changes applied before testcommit 8c575b3038d99d391d4d969907290e927f62f940 Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org> Date: Mon Mar 22 15:57:21 2021 +0100 deposit.cli: Fix cli parsing issue when xml error is returned by server Prior to this commit, any error returned by the deposit server would end up a cascading KeyError. This commit fixes it. See https://jenkins.softwareheritage.org/job/DDEP/job/tests-on-diff/585/ for more details. Comment Actions Build is green Patch application report for D5298 (id=18985)Rebasing onto 1c20fcc561... Current branch diff-target is up to date. Changes applied before testcommit 026ca4ead098bd3ddb8b8440ca0a77f50651debb Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org> Date: Mon Mar 22 15:57:21 2021 +0100 deposit.cli: Fix cli parsing issue when xml error is returned by server Prior to this commit, any error returned by the deposit server would end up a cascading KeyError. This commit fixes it. See https://jenkins.softwareheritage.org/job/DDEP/job/tests-on-diff/586/ for more details. |