Skip to content

Conversation

frankvicky
Copy link
Contributor

Why are the changes needed?

Current implementation of SimpleAuthenticator doesn't comply with HTTP Basic Authentication specification, which allows username-only or username with empty password formats.

Fix: #5968

Does this PR introduce any user-facing change?

n/a

How was this patch tested?

Unit test

@frankvicky
Copy link
Contributor Author

Hi @jerqi
Could you please take a look ?
Many thanks

@jerqi
Copy link
Contributor

jerqi commented Dec 27, 2024

Could you add more cases?
likeuser1:,:password?

…ct when using Basic Auth and Password is empty
@jerqi jerqi self-requested a review December 27, 2024 06:03
Copy link
Contributor

@jerqi jerqi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

Copy link
Member

@xunliu xunliu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@frankvicky Thank you for your contributions.
LGTM

@xunliu xunliu merged commit 956ae6b into apache:main Dec 30, 2024
26 checks passed
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.

[Bug report] The owner of the catalog is incorrect when using Basic Auth and Password is empty
3 participants