Skip to content

clear the auth cache in fluent Executor.clearAuth - #964

Merged
ok2c merged 1 commit into
apache:masterfrom
Hsnmohd:fluent-clear-auth-cache
Nov 24, 2026
Merged

ok2c merged 1 commit into
apache:masterfrom
Hsnmohd:fluent-clear-auth-cache

Conversation

@Hsnmohd

@Hsnmohd Hsnmohd commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

Executor.clearAuth clears the credentials store but not the executor's AuthCache, which holds the BasicScheme (credentials included) cached by any successful Basic exchange or authPreemptive call, so after clearAuth() the next request is still sent preemptively with the old user's Authorization header; clearAuth now clears the cache too, with regression tests in TestFluent that get 200 instead of 401 on the unpatched tree.

@ok2c
ok2c merged commit 419d1ff into apache:master Nov 24, 2026
12 checks passed
@ok2c

ok2c commented Nov 24, 2026

Copy link
Copy Markdown
Member

Cherry-picked to 5.6.x

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.

2 participants