Skip to content

mod_authn_dbd: Set a NULL extra column as an empty value - #1110

Open
arturobernalg wants to merge 1 commit into
apache:trunkfrom
arturobernalg:fix/authn-dbd-cache-null-column
Open

arturobernalg wants to merge 1 commit into
apache:trunkfrom
arturobernalg:fix/authn-dbd-cache-null-column

Conversation

@arturobernalg

Copy link
Copy Markdown
Member

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 dbd the 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

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant