org.dspace.authorize.AuthorizeException: You are not allowed to perform this task.

Sakai JIRA | Franziska Ackermann | 1 year ago
  1. 0

    Originally reported on dspace-tech: I believe I found a bug related to the "take task" button during the workflow process. As an administrator, I click on "take task" and the item is assigned to me to be reviewed. As a non-administrator with workflow step rights (let's say "Reviewer1"), I click on "take task" and get this error: You are not allowed to perform this task. Java stacktrace: org.dspace.authorize.AuthorizeException: You are not allowed to perform this task. at org.dspace.app.xmlui.aspect.workflow.FlowUtils.authorizeWorkflowItem(FlowUtils.java:164) at sun.reflect.GeneratedMethodAccessor228.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:155) at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:243) at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:3237) at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2394) at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:162) at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:393) at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2834) at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:160) at org.mozilla.javascript.Context.call(Context.java:538) at org.mozilla.javascript.ScriptableObject.callMethod(ScriptableObject.java:1833) .... However, the item is assigned to "Reviewer1" in the database. This becomes evident when you reload the submission page. The item will then appear under "Tasks you own". Do you have any suggestions on how to fix this? I could verify the error I described earlier on the demo machine (XMLUI, 5.4). As described below, the error only happens when a user with Workflow-Step rights and without administrator rights tries to take an item from the pool by clicking the "take task" button. (screenshot attached)

    Sakai JIRA | 1 year ago | Franziska Ackermann
    org.dspace.authorize.AuthorizeException: You are not allowed to perform this task.
  2. 0

    Originally reported on dspace-tech: I believe I found a bug related to the "take task" button during the workflow process. As an administrator, I click on "take task" and the item is assigned to me to be reviewed. As a non-administrator with workflow step rights (let's say "Reviewer1"), I click on "take task" and get this error: You are not allowed to perform this task. Java stacktrace: org.dspace.authorize.AuthorizeException: You are not allowed to perform this task. at org.dspace.app.xmlui.aspect.workflow.FlowUtils.authorizeWorkflowItem(FlowUtils.java:164) at sun.reflect.GeneratedMethodAccessor228.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:155) at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:243) at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:3237) at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2394) at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:162) at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:393) at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2834) at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:160) at org.mozilla.javascript.Context.call(Context.java:538) at org.mozilla.javascript.ScriptableObject.callMethod(ScriptableObject.java:1833) .... However, the item is assigned to "Reviewer1" in the database. This becomes evident when you reload the submission page. The item will then appear under "Tasks you own". Do you have any suggestions on how to fix this? I could verify the error I described earlier on the demo machine (XMLUI, 5.4). As described below, the error only happens when a user with Workflow-Step rights and without administrator rights tries to take an item from the pool by clicking the "take task" button. (screenshot attached)

    Sakai JIRA | 1 year ago | Franziska Ackermann
    org.dspace.authorize.AuthorizeException: You are not allowed to perform this task.
  3. 0

    URL Mapping in XML UI

    Google Groups | 1 year ago | Faiyaz Ahmed
    org.dspace.authorize.AuthorizeException: You are not
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.dspace.authorize.AuthorizeException

      You are not allowed to perform this task.

      at org.dspace.app.xmlui.aspect.workflow.FlowUtils.authorizeWorkflowItem()
    2. org.dspace.app
      FlowUtils.authorizeWorkflowItem
      1. org.dspace.app.xmlui.aspect.workflow.FlowUtils.authorizeWorkflowItem(FlowUtils.java:164)
      1 frame
    3. Java RT
      GeneratedMethodAccessor228.invoke
      1. sun.reflect.GeneratedMethodAccessor228.invoke(Unknown Source)
      1 frame