Hi All,
Please make sure to add the user *testuser11* to the role mentioned in the
workflow (
https://github.com/wso2/product-greg/tree/master/modules/distribution/src/main/resources/worklist
).
<htd:notifications>
<htd:tasks>
<htd:task name="AddTask">
<htd:peopleAssignments>
<htd:potentialOwners>
* <htd:from logicalPeopleGroup="approver">*
* <htd:argument name="role">*
* htd:getInput("WorkRequest")/test10:role*
* </htd:argument>*
</htd:from>
</htd:potentialOwners>
</htd:peopleAssignments>
<htd:delegation potentialDelegatees="nobody"/>
</htd:task>
</htd:tasks>
<htd:notifications/>
If the user *testuser11 *can not be found in the role "*approver*", you
will get the above mentioned permission issue.
Regards,
Firzhan
--
*Firzhan Naqash*
Senior Software Engineer - Integration Platform Team
WSO2 Inc. http://wso2.com
email: [email protected] <[email protected]>
mobile: (+94) 77 9785674 <%28%2B94%29%2071%205247551>*|
blog: http://firzhanblogger.blogspot.com/
<http://firzhanblogger.blogspot.com/> <http://suhothayan.blogspot.com/>*
*twitter: https://twitter.com/firzhan007 <https://twitter.com/firzhan007> |
linked-in: **https://www.linkedin.com/in/firzhan
<https://www.linkedin.com/in/firzhan>*
On Thu, Oct 1, 2015 at 5:15 PM, Isuruwan Herath <[email protected]> wrote:
> Following is the stack trace observed in the above failing test:
>
> INFO
> [org.wso2.carbon.automation.engine.testlisteners.TestManagerListener] -
> Running the test method ---
> org.wso2.carbon.registry.lifecycle.test.LCTransitionNotificationTestCase.testLCApprovalNeededNotification
> ----
> INFO
> [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] -
> [2015-09-30 18:52:38,551] ERROR
> {org.wso2.carbon.humantask.core.api.client.TaskOperationsImpl} - The
> user[testuser11] cannot perform loadTask() operation as either he is in
> EXCLUDED_OWNERS role or he is not in task roles [[ACTUAL_OWNER,
> BUSINESS_ADMINISTRATORS, NOTIFICATION_RECIPIENTS, POTENTIAL_OWNERS,
> STAKEHOLDERS, TASK_INITIATOR]]
> INFO
> [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] -
> [2015-09-30 18:52:38,552] ERROR
> {org.wso2.carbon.humantask.core.api.client.TaskOperationsImpl} - Error
> occurred while loading task: 101
> INFO
> [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] -
> org.wso2.carbon.humantask.core.engine.runtime.api.HumanTaskIllegalAccessException:
> Access Denied. You are not authorized to perform this task
> INFO
> [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at
> org.wso2.carbon.humantask.core.api.client.TaskOperationsImpl.authoriseToLoadTask(TaskOperationsImpl.java:568)
> INFO
> [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at
> org.wso2.carbon.humantask.core.api.client.TaskOperationsImpl.access$400(TaskOperationsImpl.java:92)
> INFO
> [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at
> org.wso2.carbon.humantask.core.api.client.TaskOperationsImpl$9.call(TaskOperationsImpl.java:529)
> INFO
> [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at
> org.wso2.carbon.humantask.core.api.client.TaskOperationsImpl$9.call(TaskOperationsImpl.java:523)
> INFO
> [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at
> org.wso2.carbon.humantask.core.scheduler.SimpleScheduler.execTransaction(SimpleScheduler.java:879)
> INFO
> [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at
> org.wso2.carbon.humantask.core.scheduler.SimpleScheduler.execTransaction(SimpleScheduler.java:828)
> INFO
> [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at
> org.wso2.carbon.humantask.core.api.client.TaskOperationsImpl.loadTask(TaskOperationsImpl.java:522)
> INFO
> [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at
> org.wso2.carbon.humantask.client.api.HumanTaskClientAPIAdminMessageReceiverInOut.invokeBusinessLogic(HumanTaskClientAPIAdminMessageReceiverInOut.java:605)
> INFO
> [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at
> org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)
> INFO
> [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at
> org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:110)
> INFO
> [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at
> org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
> INFO
> [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at
> org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:173)
> INFO
> [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at
> org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:146)
> INFO
> [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at
> org.wso2.carbon.core.transports.CarbonServlet.doPost(CarbonServlet.java:231)
>
> On Thu, Oct 1, 2015 at 10:24 AM, Shazni Nazeer <[email protected]> wrote:
>
>> Hi,
>>
>> We have a test case failure [1] which was passing with previous versions
>> of business process. We updated the business process version to 4.4.3 as we
>> needed to move to latest versions of some other repos for our release.
>>
>> This seems to be a permission issue.
>>
>> Any idea why could this happen?
>>
>> [1]
>> https://wso2.org/jenkins/job/product-greg/org.wso2.greg$org.wso2.carbon.registry.test.lifecycle.service/844/testReport/org.wso2.carbon.registry.lifecycle.test/LCTransitionNotificationTestCase/testLCApprovalNeededNotification/
>>
>> Shazni Nazeer
>> Mob : +94 777737331
>> LinkedIn : http://lk.linkedin.com/in/shazninazeer
>> Blog : http://shazninazeer.blogspot.com
>>
>> _______________________________________________
>> Dev mailing list
>> [email protected]
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Isuruwan Herath
> Technical Lead
>
> Contact: +94 776 273 296
>
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev