You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ranger.apache.org by "rangerqa (JIRA)" <ji...@apache.org> on 2016/05/05 00:12:12 UTC
[jira] [Commented] (RANGER-968) Remove email validation to allow
syncing users from a file
[ https://issues.apache.org/jira/browse/RANGER-968?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15271684#comment-15271684 ]
rangerqa commented on RANGER-968:
---------------------------------
{color:red}-1 overall{color}. Here are the results of testing the latest attachment
http://issues.apache.org/jira/secure/attachment/12802285/RANGER-968-0001.patch
against master revision ea5bf67.
{color:red}-1 patch{color}. The patch command could not apply the patch.
Console output: https://builds.apache.org/job/PreCommit-RANGER-Build/197//console
This message is automatically generated.
> Remove email validation to allow syncing users from a file
> ----------------------------------------------------------
>
> Key: RANGER-968
> URL: https://issues.apache.org/jira/browse/RANGER-968
> Project: Ranger
> Issue Type: Bug
> Reporter: Bryan Bende
> Assignee: Bryan Bende
> Priority: Minor
> Fix For: 0.6.0
>
> Attachments: RANGER-968-0001.patch
>
>
> When using the file source for syncing users, an email address is created for each user based on the hostname. This email is often not a valid email address and fails when the user is posted to the REST endpoint:
> {code}
> 016-05-04 17:01:28,318 [http-bio-6080-exec-6] INFO org.apache.ranger.biz.UserMgr (UserMgr.java:1140) - create:bob@localhost
> 2016-05-04 17:01:28,318 [http-bio-6080-exec-6] INFO org.apache.ranger.biz.UserMgr (UserMgr.java:1150) - Invalid email address:bob@localhost
> 2016-05-04 17:01:28,319 [http-bio-6080-exec-6] INFO org.apache.ranger.common.RESTErrorUtil (RESTErrorUtil.java:64) - Request failed. SessionId=13, loginId=rangerusersync, logMessage=Please provide valid email address.
> javax.ws.rs.WebApplicationException
> at org.apache.ranger.common.RESTErrorUtil.createRESTException(RESTErrorUtil.java:55)
> at org.apache.ranger.common.RESTErrorUtil.createRESTException(RESTErrorUtil.java:310)
> at org.apache.ranger.biz.UserMgr.createDefaultAccountUser(UserMgr.java:1151)
> {code}
> Since the UI does not require email address, we should remove this validation.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)