Repository navigation
mod_authn_dbd: Set a NULL extra column as an empty value - #1110
Open
arturobernalg wants to merge 1 commit into
Open
arturobernalg wants to merge 1 commit into
arturobernalg wants to merge 1 commit into
Conversation
An extra column of AuthDBDUserPWQuery or AuthDBDUserRealmQuery which is SQL NULL was put in the environment as a NULL table value. Since fe886b2 (apache#982) mod_authn_socache caches these values with the login, and with AuthnCacheProvideFor dbd the child crashed on a login for such a user, Basic or Digest. The variable is now set and empty, also without the cache. Before, env= tests saw it as not set, while CGI scripts already got an empty value. PR 65172.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #982, PR 65172: https://bz.apache.org/bugzilla/show_bug.cgi?id=65172
An extra AuthDBDUserPWQuery/AuthDBDUserRealmQuery column that is SQL NULL went into the environment as a NULL table value. Since #982 mod_authn_socache caches these values, and with
AuthnCacheProvideFor dbdthe child crashed on every login for such a user (Basic or Digest). Now it is set as an empty value.That also applies without the cache: before,
env=tests saw the variable as not set, while CGI scripts already got an empty value.test_018 gets a user with a NULL role: it crashes the child without the fix and passes with it; test/modules/aaa passes (139).
@notroj