Bug 999559

Summary: Operations on task via REST end with error saying that 'operation is not supported on tasks.'
Product: [Retired] JBoss BPMS Platform 6 Reporter: Radovan Synek <rsynek>
Component: Business CentralAssignee: Marco Rietveld <mrietvel>
Status: CLOSED CURRENTRELEASE QA Contact: Radovan Synek <rsynek>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.0.0CC: etirelli, mrietvel, rrajasek, rsynek, rzhang, smcgowan
Target Milestone: ER2   
Target Release: 6.0.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-08-06 20:08:42 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Radovan Synek 2013-08-21 14:45:58 UTC
Steps to reproduce:

1. Start some process containing a user task.
2. GET  http://localhost:8080/business-central/rest/task/1

response:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<response>
    <status>BAD_REQUEST</status>
    <url>/business-central/rest/task/1</url>
    <error>Operation 'Unable to get task 1' is not supported on tasks.</error>
</response>

This operation should be supported - and even the error message does not make much sense.

Similar situation is with starting a task:

POST http://localhost:8080/business-central/rest/task/1/start

response:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<response>
    <status>BAD_REQUEST</status>
    <url>/business-central/rest/task/1/start</url>
    <error>Operation 'Unable to check if task 1 exists' is not supported on tasks.</error>
</response>

Comment 2 Marco Rietveld 2013-08-22 00:05:56 UTC
This was fixed in this commit: 

https://github.com/droolsjbpm/droolsjbpm-integration/commit/58a8d61270f2ff9486e966d085757cc7a3cd2e6a#L3L271

The replacement of "doTaskOperation(...)" with "internalDoTaskOperation(...)" is what fixes this issue.

Comment 4 Edson Tirelli 2013-08-22 00:28:07 UTC
Rajesh, yes, it is included in the tag from today (sync.2013.08.21).

Comment 6 Radovan Synek 2013-09-04 11:53:07 UTC
Verified on BPMS 6.0.0.ER2