Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
fts-rest-client 3.12.0
-
Security Level: Public Data (This ticket is visible to anyone on the internet and will be indexed by search engines)
-
None
Description
The FTS-REST Client throws an error when no certificate is set. The steps followed in the submission workflow:
1. Create a context object (no certificate found)
2. Perform certificate delegation
3. Perform submission
If no certificate is found when creating the context object, the delegation step will fail, throwing a Python type error:
Client error: must be str, not NoneType
The Delegator object expects a valid delegation ID. However, when no certificate is given, the client gets mapped to the anonymous identity, for which the delegation ID is null. Ultimately, this leads to the Type error.
Proposal
The submission workflow should skip delegation if no certificate is available.