ranger-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Don Bosco Durai <bo...@apache.org>
Subject Re: [jira] [Updated] (RANGER-967) Allow additional characters in username
Date Wed, 04 May 2016 20:03:44 GMT
Gautam might be the right person to answer UI related questions. 

If server side fix will unblock you, then I will suggest that you should fix it for the time
being. We can ask Gautam to look into the UI side. 



Thanks

Bosco


On 5/4/16, 12:02 PM, "Bryan Bende" <bbende@gmail.com> wrote:

>All,
>
>I started looking at this ticket because I initially thought it would be
>straight forward...
>
>In UserForm.js I changed the regex validator from [a-z0-9][a-z0-9,._\-'+/@]
> to [a-z0-9][a-z0-9,._\-'+/@= ] which allowed "=" and spaces. That allowed
>me to enter a DN as a user name.
>
>The next issue is that when creating a policy for that user, the value of
>the users field is split on commas, so a single DN with commas ends being
>submitted as several users that don't exist, and prevent the policy from
>being created.
>
>This happens in RangerPolicyForm.js with this code:
>
>if(!_.isUndefined(m.get('userName')) && !_.isNull(m.get('userName'))){
> policyItem.set("users",m.get("userName").split(','));
>}
>
>I have a feeling this can't easily be changed because it is how multiple
>selected users are being stored behind the scenes.
>
>Does anyone have any thoughts on what else would need to be changed to
>allow a username with commas in it?
>
>Thanks,
>
>Bryan
>
>
>On Wed, May 4, 2016 at 1:07 PM, Bryan Bende (JIRA) <jira@apache.org> wrote:
>
>>
>>      [
>> https://issues.apache.org/jira/browse/RANGER-967?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
>> ]
>>
>> Bryan Bende updated RANGER-967:
>> -------------------------------
>>     Fix Version/s: 0.6.0
>>
>> > Allow additional characters in username
>> > ---------------------------------------
>> >
>> >                 Key: RANGER-967
>> >                 URL: https://issues.apache.org/jira/browse/RANGER-967
>> >             Project: Ranger
>> >          Issue Type: Improvement
>> >            Reporter: Bryan Bende
>> >            Assignee: Bryan Bende
>> >            Priority: Minor
>> >             Fix For: 0.6.0
>> >
>> >
>> > Currently the Username field on the Create User form in the UI performs
>> validation that restricts the value to:
>> > [a-z0-9][a-z0-9,._\-'+/@]+
>> > I'd like to be able to add a DN as a username such as:
>> > CN=localhost, OU=My Org, O=Apache, L=Santa Monica, ST=CA, C=US
>> > I believe this would require adding "=" and spaces as valid characters.
>>
>>
>>
>> --
>> This message was sent by Atlassian JIRA
>> (v6.3.4#6332)
>>


Mime
View raw message