SessionProvider::mergeMetadata: Log additional data
authorBryan Davis <bd808@wikimedia.org>
Thu, 11 Feb 2016 16:55:37 +0000 (09:55 -0700)
committerBryan Davis <bd808@wikimedia.org>
Thu, 11 Feb 2016 21:21:14 +0000 (14:21 -0700)
commit9750adacdd6095d96bb202bab0af608fbf63ad9c
tree7fd5ee4815ec158286b23009474d72854d77d571
parent93cd933c16756158b603ffc623e71542a9f5a562
SessionProvider::mergeMetadata: Log additional data

Add the data values and types to the exception raised when mismatched
session data is processed. This is done by passing the old and new
values on via a new MetadataMergeException class. The attached data is
added to the debug logging context info when caught.

Change-Id: If8a7174399289bc284ca1b36052ba515c8857c50
autoload.php
includes/session/MetadataMergeException.php [new file with mode: 0644]
includes/session/SessionManager.php
includes/session/SessionProvider.php
tests/phpunit/includes/session/SessionManagerTest.php
tests/phpunit/includes/session/SessionProviderTest.php