tracker issue : CF-4126563

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

[ANeff] Bug for: Task w/ handler cannot be updated via CF Admin

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): Aaron Neff / Aaron Neff (Aaron Neff)

Created: 03/09/2016

Components: Scheduler

Versions: 2016

Failure Type: Unspecified

Found In Build/Fixed In Build: Alpha_v12 /

Priority/Frequency: Major / Unknown

Locale/System: English / Win All

Vote Count: 0

A task w/ a handler cannot be updated via CF Admin

Steps to reproduce:

1) run the code below
2) on CF Admin's Scheduled Tasks page, click the "myTask" task
3) on the Add/Edit Scheduled Task page, click the "Submit" button
4) see red error text at the top of the page:
----------------------
An error occured (should be occurred) scheduling the task.
Invalid eventhandler.
Error: Eventhandler MyCFC could not be found.
----------------------

index.cfm
-----------
<cfscript>
  cfschedule(action="update", task="myTask", url="http://a.com", interval="daily", startdate=createDate(2015,9,29), starttime="00:00 AM", eventhandler="MyCFC");
</cfscript>

MyCFC.cfc
-----------
component implements="CFIDE.scheduler.ITaskEventHandler" {
  public boolean function onTaskStart(struct context) {return true;}
  public void function onTaskEnd(struct context) {}
  public void function onMisfire(struct context) {}
  public void function onError(struct context) {}
  public void function execute(struct context) {}
}

I reported this issue during Zeus beta: "Tasks w/ handlers can only be edited via CF Admin, if CF Admin was accessed via the same domain that the handler CFC resides in."

Now that Raijin does not add the /CFIDE virtual directory for each site, this issue can no longer be ignored.

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

Watson Bug ID:	4126563

External Customer Info:
External Company:  
External Customer Name: Aaron Neff
External Customer Email: adobelabs@itisdesign.com
External Test Config:

Attachments:

Comments:

Added By:suchsing Note Added: Hi Aaron, Nothing required from your end. Thanks for your input! I was able to reproduce it and so marking it as ToFix. Thanks, Suchika. Date Added :2015-10-21 07:12:26.0 Added By: PreRelease User User Name:Aaron Neff Note Added: Hi Suchika, I see this is Open/ToTrack. Do you need further information from me? Thanks!, -Aaron Date Added :2015-10-14 06:14:38.0 Added By: PreRelease User User Name:Aaron Neff Note Added: Hi Suchika, Here is my directory structure: C:\websites\mysitecom\www\index.cfm C:\websites\mysitecom\www\MyCFC.cfc In IIS, I have a domain pointed to this site (i.e. www.mydomain.com). To create the task, I hit URL http://www.mydomain.com/index.cfm The IIS site has the /cf_scripts and /jakarta virtual directories, but not the /CFIDE virtual directory. And I'm accessing CF Admin at the default URL http://localhost:8500/CFIDE/administrator/index.cfm The issue occurs b/c the task is created via URL http://www.mydomain.com/index.cfm and the CF Admin is accessed via URL http://localhost:8500/CFIDE/administrator/index.cfm. Since "www.mydomain.com" is not the same domain as "localhost", the issue arises. Please let me know if I can help further. Thanks!, -Aaron Date Added :2015-09-29 14:36:12.0 Added By:suchsing Note Added: Hi Aaron, I tried the steps you have mentioned in the bug. But I am not able to reproduce the bug. Is there any step that I am missing? I am trying on a CF server configured with IIS. Tried with placing the eventhandler both in the CF webroot & IIS webroot. But could not reproduce it. Please let us know if I am missing any step. Thanks, Suchika. Date Added :2015-09-29 13:39:55.0 Added By: PreRelease User User Name:Aaron Neff Note Added: Entered Bug. Date Added :2015-09-29 07:34:21.0
Comment by CFwatson U.
3730 | March 09, 2016 02:37:20 AM GMT
Hi Adobe, I've verified this is fixed in CF2016 Update 3 (build 2016.0.0.297996). Thanks!, -Aaron P.S. There is still an issue w/ creating -new- tasks w/ handlers via CF Admin. I've logged CF-4197252 for that issue.
Comment by External U.
3731 | November 02, 2016 07:49:11 PM GMT