Uploaded image for project: 'Ranger'
  1. Ranger
  2. RANGER-968

Remove email validation to allow syncing users from a file

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 0.6.0
    • None
    • None

    Description

      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:

      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)
      

      Since the UI does not require email address, we should remove this validation.

      Attachments

        1. RANGER-968-0001.patch
          2 kB
          Bryan Bende

        Activity

          People

            bbende Bryan Bende
            bbende Bryan Bende
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: