-
Notifications
You must be signed in to change notification settings - Fork 607
Restore Security::ErrorDetail::detailEntry initialization #2364
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Restore Security::ErrorDetail::detailEntry initialization #2364
Conversation
rousskov
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for fixing this regression.
kinkie
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
2023 commit 4e14397 accidentally removed code that was setting `detailEntry` data member, breaking `%ssl_error_descr` expansion: `Security::ErrorDetail::printErrorDescription()` would always print `[Not available]`. Squid still printed non-configurable request-independent error code _name_ correctly because the corresponding `printErrorCode()` method only uses `detailEntry` as a performance optimization. The effects of this fix are visible, for example, in generated ERR_SECURE_CONNECT_FAIL error responses: ```diff - <p>[Not available]: /CN=...</p> + <p>Certificate does not match domainname: /CN=...</p> ``` This is a Measurement Factory project.
@kinkie, would you mind checking our |
2023 commit 4e14397 accidentally removed code that was setting
detailEntrydata member, breaking%ssl_error_descrexpansion:Security::ErrorDetail::printErrorDescription()would always print[Not available].Squid still printed non-configurable request-independent error code
name correctly because the corresponding
printErrorCode()methodonly uses
detailEntryas a performance optimization.The effects of this fix are visible, for example, in generated
ERR_SECURE_CONNECT_FAIL error responses:
This is a Measurement Factory project.