-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Medium
-
Affects Version/s: 3.1.1
-
Component/s: Administration - Workflows
-
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)
...
...
...
- is related to
-
JRASERVER-7100 Workflow Condition on CREATE-TRANSITION throws JAVA Exception
-
- Closed
-
- relates to
-
JRASERVER-5581 Validator and 'No view for transition' causes error
-
- Closed
-