Uploaded image for project: 'Minyaa Suite'
  1. Minyaa Suite
  2. MYAA-1448

When a transition is executed by the Auto-Transition, Some Condtion or Validator may fails in NPE

XMLWordPrintableJSON

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.4
    • None
    • None
    • Security Level: Public
    • None
    • 6.x

      Some of Minyaa Workflow-Function (Condition, Validator or Post-Funciton) retrieve the Remote User using the webwork.action.ActionContext.getSession().get(DefaultAuthenticator.LOGGED_IN_KEY).
      With the Auto-Transition service, it causes a NPE since the User is not known in the Session.

      The Remote User has to be retrieved using com.atlassian.jira.component.ComponentAccessor.getJiraAuthenticationContext().getUser();

      An improvement for MYAA-1447 will have to be done in order to support any user account in the Auto-Transition service.

            vthoule Vincent Thoulé
            vthoule Vincent Thoulé
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: