New Foswiki release 2.1.6 is available with important security fixes.
Sourceforge foswiki email lists being discontinued. Subscribe to the new Foswiki announce and discuss lists at MailingLists
You are here: Foswiki>Tasks Web>Item11461 (11 Apr 2012, GeorgeClark)Edit Attach

Item11461: beforeSaveHandler is passed an uncommitted meta object

Priority: Urgent
Current State: Closed
Released In: 1.1.5
Target Release: patch
Applies To: Engine
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 - This page was cached on 12 Jul 2018 - 05:26.

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