You are here: Foswiki>Tasks Web>Item11461 (11 Apr 2012, GeorgeClark)Edit Attach

Item11461: beforeSaveHandler is passed an uncommitted meta object

pencil
Priority: Urgent
Current State: Closed
Released In: 1.1.5
Target Release: patch
Applies To: Engine
Component:
Branches: Release01x01 trunk
Reported By: CrawfordCurrie
Waiting For:
Last Change By: GeorgeClark
the $meta obj passed to beforeSaveHandler soes not (yet) have a committed rev assigned to it. if that meta obj is used for an access controls check, it will reload the obj with the latest topic version - blowing away changes made in the obj

the solution is to ensure the _loadedRev is set before passing the obj down

-- CrawfordCurrie - 20 Jan 2012

Fix checked into trunk and release01x01 with unit tests.

-- CrawfordCurrie - 23 Jan 2012

 
Topic revision: r10 - 11 Apr 2012, GeorgeClark
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy