tracker issue : CF-3085245

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

Bug 87176:-(Watson Migration Closure)Add onRequestStart method to Server

| View in Tracker

Status/Resolution/Reason: To Fix//

Reporter/Name(from Bugbase): Peter Freitag / Peter Freitag (Peter Freitag)

Created: 11/30/2011

Components: General Server

Versions: 9.0.1

Failure Type: Unspecified

Found In Build/Fixed In Build: 0000 /

Priority/Frequency: Trivial / Unknown

Locale/System: English / Platforms All

Vote Count: 4


Add onRequestStart method to Server.cfc to allow a global onRequestStart handler to process for sites with lots of applications


Enhancement request for Server.cfc to support onRequestStart() which gets fired for all applications on the server.

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

Watson Bug ID:	3085245

External Customer Info:
External Company:  
External Customer Name: Peter Freitag
External Customer Email: 735D4A6E43D50B6B992016B8
External Test Config: 11/30/2011



This bug has been voted..
Vote by External U.
20874 | January 11, 2012 06:07:23 AM GMT
This bug has been voted..
Vote by External U.
20875 | January 11, 2012 06:07:25 AM GMT
Does not make sense to have global handler for onRequestStart. A real world use case will help to understand the requirement better, if someone can share one.
Comment by Awdhesh K.
20859 | June 26, 2014 11:43:38 PM GMT
Closing this.We can evaluate this again if there are other valid use-cases.
Comment by Vamseekrishna N.
20860 | December 04, 2014 09:45:42 AM GMT
+1. Vote must be between 25 and 4000 characters
Vote by External U.
20876 | December 05, 2014 02:06:52 AM GMT
My main use case for this was to allow you to add security rules that will apply to all applications on the server (even those in /CFIDE). Specifically this would allow you to deploy something like FuseGuard on the entire server very easily. For example if you had Fuseguard protecting /CFIDE it would have caught many of the vulnerabilities that have been patched previously.
Comment by External U.
20861 | December 05, 2014 11:27:39 AM GMT
Actually, change my vote to a +1 please. Pete's use case is eminently sensible.
Comment by External U.
20862 | December 05, 2014 01:02:30 PM GMT
+1 - Pete's comment on 8:57:39 AM GMT+00:00 Dec 5, 2014 is a valid use case. Please reconsider. Additionally, this would help us filter out duplicate requests originating from CF's IIS connector (please see my last paragraph in #CF-4028272's description).
Vote by External U.
20877 | July 30, 2015 02:42:22 AM GMT
Just wanted to note another thing I’d use a server-wide onRequestStart for: server-wide analytics/reports of requests. Ex: For creating a report showing %-difference of incoming traffic that App1 and App2 received in Q3 of last year. Ex: For creating a report showing which app on the server showed the highest gain in unique visitors last year. Kinda like a DIY Google Analytics, but note I’m saying "app", not site. Basically to generate reports using data that only CF knows about, w/o placing code in each app on the server. Thanks!, -Aaron
Comment by External U.
20863 | July 30, 2015 03:15:00 AM GMT
Just wondering... if there's a use case for a global onRequestStart(), is there not the same use case (or variation thereof) for all the other application lifecycles to have global handlers too?
Comment by External U.
20864 | July 31, 2015 12:19:32 AM GMT
Right, so can we get this looked at again please?
Comment by External U.
20865 | October 01, 2015 09:32:11 AM GMT
Yes, lets get this looked at again - my use case would still be really useful for me and a lot of my customers
Comment by External U.
20866 | October 01, 2015 09:35:04 AM GMT
I guess this is the thing that Vamsee might not be seeing Pete: you'er not one individual, you represent *a lot* of ColdFusion installs around the place.
Comment by External U.
20867 | October 01, 2015 10:08:40 AM GMT
Hi Vamsee, You said this can be evaluated again if there are other valid use-cases. Other valid use-cases were added in the comments. Also this is needed for a workaround to CF-4028272 (CF duplicates IIS requests). Can this ticket please be re-opened for evaluation? Thanks!, -Aaron
Comment by External U.
20868 | December 04, 2015 04:41:05 AM GMT
Thanks for pitching in with the use-cases. While we will not be able to consider this for the Raijin release, we can definitely evaluate it for the release after Raijin, hence, re-opening this.
Comment by Vamseekrishna N.
20869 | December 04, 2015 07:14:25 AM GMT
Do you think, Vamseekrishna, had you actually bothered to review the ticket a year ago when Peter clarified his position, you might not be needing to defer this until ColdFusion 13?
Comment by External U.
20870 | December 04, 2015 07:33:04 AM GMT
Hi Vamsee, You're very welcome and thanks very much for re-opening! Thanks!, -Aaron
Comment by External U.
20871 | December 04, 2015 07:33:30 AM GMT
Oh that is a good point Adam makes. Pete did reply the very next day. Thanks!, -Aaron
Comment by External U.
20872 | December 04, 2015 07:35:16 AM GMT
Hi Adobe, Please add this to my Aether wish list. Thanks!, -Aaron
Comment by External U.
20873 | May 24, 2016 02:41:41 AM GMT