You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Pranav Saxena (Jira)" <ji...@apache.org> on 2023/02/13 07:14:00 UTC

[jira] [Updated] (HADOOP-18547) Check if config value is not empty string in AbfsConfiguration.getMandatoryPasswordString()

     [ https://issues.apache.org/jira/browse/HADOOP-18547?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pranav Saxena updated HADOOP-18547:
-----------------------------------
    Description: 
The method `getMandatoryPasswordString` is called in `AbfsConfiguration.getTokenProvider()' to check if following configs are non-null (diff keys applicable for different implementation of AccessTokenProvider):

1. fs.azure.account.oauth2.client.endpoint: in ClientCredsTokenProvider
2. fs.azure.account.oauth2.client.id: in ClientCredsTokenProvider, MsiTokenProvider, RefreshTokenBasedTokenProvider
3. fs.azure.account.oauth2.client.secret: in ClientCredsTokenProvider
4. fs.azure.account.oauth2.client.endpoint: in UserPasswordTokenProvider
5. fs.azure.account.oauth2.user.name: in UserPasswordTokenProvider
6. fs.azure.account.oauth2.user.password: in  UserPasswordTokenProvider
7. fs.azure.account.oauth2.msi.tenant: in MsiTokenProvider
8. fs.azure.account.oauth2.refresh.token: in RefreshTokenBasedTokenProvider

Right now, this method checks if its non-null and not non-empty. This task needs to add check on non-empty config values.

> Check if config value is not empty string in AbfsConfiguration.getMandatoryPasswordString()
> -------------------------------------------------------------------------------------------
>
>                 Key: HADOOP-18547
>                 URL: https://issues.apache.org/jira/browse/HADOOP-18547
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: fs/azure
>    Affects Versions: 3.3.4
>            Reporter: Pranav Saxena
>            Assignee: Pranav Saxena
>            Priority: Minor
>              Labels: pull-request-available
>
> The method `getMandatoryPasswordString` is called in `AbfsConfiguration.getTokenProvider()' to check if following configs are non-null (diff keys applicable for different implementation of AccessTokenProvider):
> 1. fs.azure.account.oauth2.client.endpoint: in ClientCredsTokenProvider
> 2. fs.azure.account.oauth2.client.id: in ClientCredsTokenProvider, MsiTokenProvider, RefreshTokenBasedTokenProvider
> 3. fs.azure.account.oauth2.client.secret: in ClientCredsTokenProvider
> 4. fs.azure.account.oauth2.client.endpoint: in UserPasswordTokenProvider
> 5. fs.azure.account.oauth2.user.name: in UserPasswordTokenProvider
> 6. fs.azure.account.oauth2.user.password: in  UserPasswordTokenProvider
> 7. fs.azure.account.oauth2.msi.tenant: in MsiTokenProvider
> 8. fs.azure.account.oauth2.refresh.token: in RefreshTokenBasedTokenProvider
> Right now, this method checks if its non-null and not non-empty. This task needs to add check on non-empty config values.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org