Skip to content
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

API: Add LRO_USERNAME and LRO_PASSWORD options #316

Merged

Conversation

jrohel
Copy link
Contributor

@jrohel jrohel commented Jun 24, 2024

The original LRO_USERPWD option does not support a colon in the username. Use LRO_USERNAME and LRO_PASSWORD instead.

The description of the LRO_USERPWD option has been expanded:
The user and password strings are not URL decoded, so there is no way to send in a username containing a colon using this option. The option is DEPRECATED!
Use LRO_USERNAME and LRO_PASSWORD.

The description of the LRO_PROXYUSERPWD option has been expanded:
Both the username and the password are URL decoded before use, so if the username contains, for example, a colon, it should be encoded as %3A.

Unit tests for LRO_USERNAME and LRO_PASSWORD are included.

Closes: #315

The original LRO_USERPWD option does not support a colon in the username.
Use LRO_USERNAME and LRO_PASSWORD instead.

The description of the LRO_USERPWD option has been expanded:
The user and password strings are not URL decoded, so there is no way
to send in a username containing a colon using this option. The option
is DEPRECATED!
Use LRO_USERNAME and LRO_PASSWORD.

The description of the LRO_PROXYUSERPWD option has been expanded:
Both the username and the password are URL decoded before use, so
if the username contains, for example, a colon, it should be encoded
as %3A.
@@ -170,7 +173,9 @@ typedef enum {
Use LRO_PROXYAUTHMETHODS */

LRO_PROXYUSERPWD, /*!< (char *)
User and password for proxy in format user:password */
User and password for proxy in format user:password
Both the username and the password are URL decoded before use, so if the username
Copy link
Member

Choose a reason for hiding this comment

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

Ah, I see, this was the behavior already, but good that it's more clearly documented now.

Copy link
Member

@evan-goode evan-goode left a comment

Choose a reason for hiding this comment

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

LGTM

@evan-goode evan-goode merged commit aae9c95 into rpm-software-management:master Jun 27, 2024
6 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.

lr_handle_setopt: Cannot use : character in username - LRO_USERPWD
2 participants