Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

If a detailed error message is available, do not overwrite #116

Merged
merged 1 commit into from
Apr 26, 2023

Conversation

bbockelm
Copy link
Contributor

When verification of ACs fails, the prior behavior is to always have this message:

Cannot verify AC signature!

This can be difficult to debug as there's no indication of whether its a problem with the proxy itself or with the host configuration.

This patch appends the underlying error message if one was provided. For example,

Cannot verify AC signature!  Underlying error: Certificate verification \
  failed for certificate '/CN=voms.example.com': certificate has expired.

(newlines added for readability)

When verification of ACs fails, the prior behavior is to always have
this message:

```
Cannot verify AC signature!
```

This can be difficult to debug as there's no indication of whether
its a problem with the proxy itself or with the host configuration.

This patch appends the underlying error message if one was provided.
For example,

```
Cannot verify AC signature!  Underlying error: Certificate verification \
  failed for certificate '/CN=voms.example.com': certificate has expired.
```

(newlines added for readability)
@giacomini giacomini changed the base branch from master to develop April 26, 2023 19:55
@giacomini giacomini merged commit 564dd86 into italiangrid:develop Apr 26, 2023
@giacomini
Copy link
Member

Thanks for the patch.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants