From e920fe34ef16d30af0f4fb8e33b565e572ab30c8 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Fri, 5 Nov 2010 19:05:02 +0000 Subject: - Patch #575280 by mfb, carlos8f, chx, bleen18: impersonation when an https session exists. --- modules/simpletest/tests/upgrade/upgrade.test | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'modules/simpletest/tests/upgrade') diff --git a/modules/simpletest/tests/upgrade/upgrade.test b/modules/simpletest/tests/upgrade/upgrade.test index 4220faebb..8ea93deba 100644 --- a/modules/simpletest/tests/upgrade/upgrade.test +++ b/modules/simpletest/tests/upgrade/upgrade.test @@ -113,7 +113,12 @@ abstract class UpgradePathTestCase extends DrupalWebTestCase { // Force our way into the session of the child site. drupal_save_session(TRUE); + // A session cannot be written without the ssid column which is missing on + // Drupal 6 sites. + db_add_field('sessions', 'ssid', array('description' => "Secure session ID. The value is generated by Drupal's session handlers.", 'type' => 'varchar', 'length' => 128, 'not null' => TRUE, 'default' => '')); _drupal_session_write($sid, ''); + // Remove the temporarily added ssid column. + db_drop_field('sessions', 'ssid'); drupal_save_session(FALSE); // Restore necessary variables. -- cgit v1.2.3