tracker issue : CF-3699565

select a category, or use search below
(searches all categories and all time range)
Title:

exchange 2010: unable to set the task Status to "Completed" with cfexchangetask action="modify".

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): / ext-user (Piyush Kumar Nayak)

Created: 01/27/2014

Components: CFExchange

Versions: 11.0

Failure Type:

Found In Build/Fixed In Build: 288057 / CF11 Update5

Priority/Frequency: Normal / Some users will encounter

Locale/System: English / Mac 10 All,Windows 7 SP1 64-bit

Vote Count: 0

Listed in the version 11.0.05.293506 Issues Fixed doc
Problem:
exchange 2010: unable to set the task Status to "Completed" with cfexchangetask action="modify".

Method:
see notes

Result:
Could not modify the task.
This property can't be deleted.

coldfusion.exchange.webservice.EWSException: Could not modify the task.
	at coldfusion.exchange.webservice.EWSConnection.modifyTask(EWSConnection.java:2050)
	at coldfusion.tagext.net.exchange.TaskTagHelper.saveTask(TaskTagHelper.java:181)
	at coldfusion.tagext.net.exchange.ExchangeTaskTag.doEndTag(ExchangeTaskTag.java:357)
	at coldfusion.runtime.CfJspPage._emptyTcfTag(CfJspPage.java:2800)
	at cf_StatusPCDCTest12ecfm1019188231.runPage(C:\inetpub\cf10_iis\cfsuite\coldfusion\tags\extensibility\cfexchange\template\Tasks\Modify\_StatusPCDCTest1.cfm:53)
	
Expected:
This fails in CF10 and CF11 with the same error.
The test case works with exchange 2007.

Workaround:
n/a

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3699565

External Customer Info:
External Company:  
External Customer Name:  
External Customer Email:

Attachments:

Comments:

When an exchangetask is modified by setting the status to completed the status is still showing as In_progress checked the trace logs seems to be a bug with the EWS API will post a question in the forums.
Comment by S V.
13601 | February 11, 2014 11:52:47 PM GMT
verified with standalone CF11.0.04.293043 / Win x64. "Could not modify the task.This property can't be deleted." error is no longer observed. Though error results in Exchange 2010 when on attempts to modify a task with the following struct: <cfset modtaskStruct.Status="Completed"> <cfset modtaskstruct.percentcompleted=50> <cfset modtaskstruct.datecompleted="10 June 2006"> Error: An object within a change description must contain one and only one property to modify. oldfusion.exchange.webservice.EWSException: Could not modify the task. at coldfusion.exchange.webservice.EWSConnection.modifyTask(EWSConnection.java:2185) with Exchange 2007 the following result is observed with no error: Status: Completed PercentCompleted: 100.0 DateCompleted: {ts '2006-06-10 00:00:00'} Note that in this case both the status as well as date completed attributes are updated and percentcompleted property is ignored. test case : StatusPCDCTest1.cfm in the bug description.
Comment by Piyush K.
13602 | January 22, 2015 08:57:27 AM GMT
@Piyush, are you suggesting that you cant mark the task as 'completed' using 'modify' action in exchage server 2010? what happens if the percentcompleted = 100 in your example?
Comment by Rupesh K.
13603 | January 22, 2015 09:07:07 AM GMT
Task can be marked as completed in exchange 2010 (the passed percentcompleted value is ignored if status is set to 'completed'), but it cannot be marked as completed with a date of completion of choice. The completion date is always set to the current date. For eg. in the following case: <cfset modtaskStruct.Status="Completed"> <cfset modtaskStruct.percentcompleted=50> The task is set to 'completed' status and the date of completion is recorded as the current date. Status: Completed PercentCompleted: 100.0 DateCompleted: {ts '2015-01-22 15:43:28'} But passing an additional datecompleted attribute to the struct, as expressed below, results in the error noted in my previous comment. <cfset modtaskStruct.Status="Completed"> <cfset modtaskstruct.datecompleted="22 Jan 2015">
Comment by Piyush K.
13604 | January 22, 2015 10:42:48 AM GMT
looks like the inflexibility in setting completion date is expected of exchange 2010, per Pavan's comment in bug #CF-3699941, but the exception seems new.
Comment by Piyush K.
13605 | January 22, 2015 10:53:15 AM GMT
Original issue is fixed. Answer for the Piyush's Query: EWS library itself is validating the correct combination of attributes that can be used as a set for modifying the tasks. It was not the case earlier(WebDav). That is why you are see this behavior. This should be fine as it is an extra validation of what attributes makes for the group. Say, datecompleted="" and status=completed doesn't work together.
Comment by Krishna R.
13606 | February 04, 2015 05:35:16 AM GMT
verified that same error: "An object within a change description must contain one and only one property to modify." is observed in CF11 HF3. under similar conditions, ie, if dateCompletion and status attribs are specified togather for 'modify' action. Though the same combination of attributes works with 'create' action. Also, setting only one attribute: 'status' to 'completed' sets the dateCompleted to the current date, but, setting the percentcompleted attribute to '100' does not set the datecompleted attrib in the modified task (field is blank). Closing this since the behavior is not a regression.
Comment by Piyush K.
13607 | February 04, 2015 05:50:16 AM GMT
The fix for this bug is available in the pre-release build of ColdFusion 11 Update 5
Comment by CFwatson U.
13608 | February 20, 2015 09:22:56 AM GMT
Verified this is fixed in CF11 Update 5 (build 11,0,05,293506). Status is set as "Completed", instead of "In_Progress", when task information structure is {status='completed'}. Thanks!, -Aaron
Comment by External U.
13609 | August 27, 2015 12:45:15 AM GMT