Bug 999559 - Operations on task via REST end with error saying that 'operation is not supported on tasks.'
Summary: Operations on task via REST end with error saying that 'operation is not supp...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss BPMS Platform 6
Classification: Retired
Component: Business Central
Version: 6.0.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ER2
: 6.0.0
Assignee: Marco Rietveld
QA Contact: Radovan Synek
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-08-21 14:45 UTC by Radovan Synek
Modified: 2016-09-20 05:04 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-08-06 20:08:42 UTC
Type: Bug


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.