Exception in Jira Policy check when two users with same email exists

Issue #189 new
Lino Barreca created an issue

Jira has two users (one disabled) with same email, different network users.

When trying to push I get

git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks push -v --set-upstream origin mybranch:mybranch
POST git-receive-pack (983 bytes)
remote: Control Freak v2020.12.10: java.lang.RuntimeException: Bad JIRA HTTP POST=401 SENT={"fields":["status","assignee"],"validateQuery":false,"maxResults":99,"expand":["changelog"],"jql":"KEY IN(BUG-57)"} RECV=
remote: java.lang.RuntimeException: Bad JIRA HTTP POST=401 SENT={"fields":["status","assignee"],"validateQuery":false,"maxResults":99,"expand":["changelog"],"jql":"KEY IN(BUG-57)"} RECV=
remote: at com.bitbooster.hook.JiraUtil$1.run(JiraUtil.java:292)
remote: at com.bitbooster.hook.JiraUtil.query(JiraUtil.java:204)
remote: at com.bitbooster.hook.JiraUtil.query(JiraUtil.java:79)
remote: at com.bitbooster.hook.JiraUtil.query(JiraUtil.java:73)
remote: at com.bitbooster.hook.ControlFreakHook.jiraPolicyCheck(ControlFreakHook.java:1639)
remote: at com.bitbooster.hook.ControlFreakHook.validateChange(ControlFreakHook.java:1071)
remote: at com.bitbooster.hook.ControlFreakHook.processReceive(ControlFreakHook.java:563)
remote: at com.bitbooster.hook.ControlFreakPreReceive.preUpdate(ControlFreakPreReceive.java:141)
remote:

Pushing to [redacted]
To [redacted]
! [remote rejected] mybranch -> mybranch (pre-receive hook declined)
error: failed to push some refs to '[redacted]'

Completed with errors, see above.

I think the problem is that the control freak is using the wrong account in Jira and thus he gets the 401

Comments (2)

  1. Log in to comment