rujia created STORM-1150:
----------------------------
Summary: The authorization mode of Logviewer is not working well
when I add other groups for log
Key: STORM-1150
URL: https://issues.apache.org/jira/browse/STORM-1150
Project: Apache Storm
Issue Type: Bug
Components: storm-core
Affects Versions: 0.10.0
Reporter: rujia
Assignee: rujia
I add a super group for logviewer with codes :
(defn authorized-log-user? [user fname conf]
(if (or (blank? user) (blank? fname))
nil
(let [groups (user-groups user)
[user-wl group-wl] (get-log-user-group-whitelist conf fname)
logs-users (concat (conf LOGS-USERS)
(conf NIMBUS-ADMINS)
user-wl)
logs-groups (concat (conf LOGS-GROUPS)
(conf NIMBUS-ADMIN-GROUPS) //my super group
group-wl)]
(or (some #(= % user) logs-users)
(< 0 (.size (intersection (set groups) (set group-wl))))))))
maybe the "(set group-wl)" should be "(set logs-groups)"?
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)