Skip to content

CCDBApi: protection against missing X509_CERT_DIR env var#6984

Merged
sawenzel merged 1 commit intoAliceO2Group:devfrom
aphecetche:ccdb-api-x509-cert-dir-should-not-be-mandatory
Sep 7, 2021
Merged

CCDBApi: protection against missing X509_CERT_DIR env var#6984
sawenzel merged 1 commit intoAliceO2Group:devfrom
aphecetche:ccdb-api-x509-cert-dir-should-not-be-mandatory

Conversation

@aphecetche
Copy link
Copy Markdown
Collaborator

@Atlantic777 @costing @sawenzel

Here's a small change for your consideration.

Assuming I understand correctly that the CCDB is not 100% tied to AliEn, I would expect it to work as it was before #5826 even if some env variables are not set.

As far as I can tell with this minimal change the ccdb related tests of O2 (ctest -L ccdb) work even without the env var set, otherwise they crash (and any attempt to use the CcdbApi crash as well).

(tested on macOS, with AliceO2 built with Spack, but I'd say that's not relevant as much as added requirement on some variables to be present if they are not really, or not always).

@aphecetche
Copy link
Copy Markdown
Collaborator Author

hum, actually @ktf proposed almost at the same time another version of this PR #6985 which does not allow the X509_CERT_DIR to be unset. So, should it really be set or (as I've observed) can we live without it ?

@sawenzel sawenzel merged commit 149dcb7 into AliceO2Group:dev Sep 7, 2021
@aphecetche aphecetche deleted the ccdb-api-x509-cert-dir-should-not-be-mandatory branch September 10, 2021 06:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants