tracker issue : CF-3036894

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

Bug 73866:Tags that abort the current process, like cfabort, cflocation, cfcontent, etc, do NOT flush stuff

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): Raymond Camden / Raymond Camden (Raymond Camden)

Created: 11/30/2008

Components: ORM Support

Versions: 9.0

Failure Type: Unspecified

Found In Build/Fixed In Build: 0000 / 218294

Priority/Frequency: Major / Unknown

Locale/System: English / Mac 10 All

Vote Count: 3

Problem:

Tags that abort the current process, like cfabort, cflocation, cfcontent, etc, do NOT flush stuff. So if you saved an object, then cflocation back to some index page, your save is not really saved unless you run ormFlush first. I think most folks will be tripped up by this. I can see not doing a flush on abort (although maybe it should), but the other tags like cflocation/cfabort shouldn't require us to flush first.


Method:


Result:

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

Watson Bug ID:	3036894

External Customer Info:
External Company:  
External Customer Name: Raymond Camden
External Customer Email: 5FBC41E943BD265C992015D5
External Test Config: 11/30/2008

Attachments:

Comments:

+1 vote. I agree that the situation is grey with <cfabort>. Perhaps if it's just a vanilla <cfabort>, then it should still flush, but if it's <cfabort showerror="anything"> then it should not? -- Adam
Vote by External U.
24596 | November 10, 2011 07:06:09 PM GMT
I think it will surprise users if DB updates are not flushed, even on a cfabort. I would rather see DB updates flushed in *all* situations where a request terminates. If a user needs to ensure DB updates are *not* flushed on an error, they should use a transaction and roll it back on failure (before aborting the request).
Vote by External U.
24597 | November 10, 2011 07:06:11 PM GMT
This bug has been voted..
Vote by External U.
24598 | November 10, 2011 07:06:12 PM GMT