Validator on "Create Issue" transition fails to report original/helpful error.

XMLWordPrintable

    • 3.01

      If a validator throws an exception (e.g. InvalidInputException) on the 'Create Issue' transtion, the original error is not displayed.

      A possible scenario would involve a validator that determines if a specific user can set a particular priority.

      Testing with a simple PermissionValidator on 'Create Issue' results in the following exception displayed on the "Create Issue" screen if the user does not have the required permission:

      Exception: java.lang.reflect.UndeclaredThrowableException

      while the logs record the following exception (with the real reason for the failure):

      2005-04-01 12:23:35,035 ERROR [atlassian.jira.workflow.SimpleWorkflowManager] Error occured while creating issue.
      [InvalidInputException: [Error map: [{}]] [Error list: [[User 'admin' doesn't have the 'setsecurity' permission]]]
      at com.atlassian.jira.workflow.validator.AbstractPermissionValidator.hasUserPermission(AbstractPermissionValidator.java:53)
      at com.atlassian.jira.workflow.validator.PermissionValidator.validate(PermissionValidator.java:58)
      at com.opensymphony.workflow.AbstractWorkflow.verifyInputs(AbstractWorkflow.java:985)
      at com.opensymphony.workflow.AbstractWorkflow.transitionWorkflow(AbstractWorkflow.java:1198)
      at com.opensymphony.workflow.AbstractWorkflow.initialize(AbstractWorkflow.java:584)
      at com.atlassian.jira.workflow.SimpleWorkflowManager.createIssue(SimpleWorkflowManager.java:125)
      ...
      ...
      ...

              Assignee:
              Dylan Etkin [Atlassian]
              Reporter:
              Keith Brophy
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: